checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
---
2
2
SHA256:
3
- metadata.gz: 6dba0d3d78a69188051183475629c6ad7f176b106ca86b55eec2148516c6c95b
4
- data.tar.gz: bd96c16826fc7ee496914c48c42c3221d2779470475212fc76c6ca3a724e3a39
3
+ metadata.gz: 7670fc77a362e27fd4b9d666c20c2042bb077a3a7c3211bca3271074af4ea913
4
+ data.tar.gz: 7fbd76e8c88ea4e44386e329dd187573dfc7553e371088053e8ec2645c0bad3f
5
5
SHA512:
6
- metadata.gz: 971b8d1eb713b56dff1fb4f450afbf2e98e3fbff9c8fa9d79f0ebf73047bf46e17da56b9806490821323f95b60e16b3740319a5f12a5642c25c445301d45339f
7
- data.tar.gz: 13353dbd4d12156f26c97abb55fc4c046d5ac68eeec47e3a822f6cd7e8674de3c39c48db9a560f68ce63dbd269a07332bfcbb96daa721670d2fbbac77ca5ed6e
6
+ metadata.gz: be88328b943bc8aa3d4d1a05e845b53c77e3a6737e8e863b94c349ec3049d47bf25c4610ebbc812e2f2ecb84568ec787eb2e86cae622d5c3a2d81a7bce000655
7
+ data.tar.gz: a489fc157813dc6ac67bc8bd047b487234768c4584449128bd9290582507da75d68fb429a5ed9bfd9e75b80b29e21549a793de76a00f784a07a63657f12f6ad5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # v1.3.2
2
+
3
+ * Support rendering views from inside component templates.
4
+
5
+ *Patrick Sinclair*
6
+
1
7
# v1.3.1
2
8
3
9
* Fix bug where rendering nested content caused an error.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
PATH
2
2
remote: .
3
3
specs:
4
- actionview-component (1.3.1)
4
+ actionview-component (1.3.2)
5
5
6
6
GEM
7
7
remote: https://rubygems.org/
data/actionview-component.gemspec CHANGED
@@ -6,7 +6,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
6
7
7
Gem::Specification.new do |spec|
8
8
spec.name = "actionview-component"
9
- spec.version = "1.3.1"
9
+ spec.version = "1.3.2"
10
10
spec.authors = ["GitHub Open Source"]
11
11
spec.email = ["opensource+actionview-component@github.com"]
12
12
data/lib/action_view/component/base.rb CHANGED
@@ -74,7 +74,7 @@ module ActionView
74
74
def initialize(*); end
75
75
76
76
def render(options = {}, args = {}, &block)
77
- if options.is_a?(Hash) && options.has_key?(:partial)
77
+ if options.is_a?(String) || (options.is_a?(Hash) && options.has_key?(:partial))
78
78
view_context.render(options, args, &block)
79
79
else
80
80
super
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: actionview-component
3
3
version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
platform: ruby
6
6
authors:
7
7
- GitHub Open Source
8
8
autorequire:
9
9
bindir: exe
10
10
cert_chain: []
11
- date: 2019-10-01 00:00:00.000000000 Z
11
+ date: 2019-10-02 00:00:00.000000000 Z
12
12
dependencies:
13
13
- !ruby/object:Gem::Dependency
14
14
name: bundler