lib/action_view/component/base.rb in actionview-component-1.3.1 vs lib/action_view/component/base.rb in actionview-component-1.3.2
- old
+ new
@@ -72,10 +72,10 @@
end
def initialize(*); end
def render(options = {}, args = {}, &block)
- if options.is_a?(Hash) && options.has_key?(:partial)
+ if options.is_a?(String) || (options.is_a?(Hash) && options.has_key?(:partial))
view_context.render(options, args, &block)
else
super
end
end