lib/hanami/view/rendering.rb in hanami-view-1.2.1 vs lib/hanami/view/rendering.rb in hanami-view-1.3.0.beta1
- old
+ new
@@ -194,10 +194,10 @@
#
# template = Hanami::View::Template.new('index.html.erb')
# view = IndexView.new(template, {article: article})
#
# view.article # => #<Article:0x007fb0bbd3b6e8>
- def method_missing(m, *)
+ def method_missing(m)
@scope.__send__ m
end
end
# Render the given context and locals with the appropriate template.