lib/lotus/view/rendering/templates_finder.rb in lotus-view-0.4.4 vs lib/lotus/view/rendering/templates_finder.rb in lotus-view-0.5.0
- old
+ new
@@ -68,10 +68,10 @@
#
# Lotus::View::Rendering::TemplatesFinder.new(Articles::Show).find
# # => [#<Lotus::View::Template:0x007f8a0a86a970 ... @file="/path/to/templates/articles/show.html.erb">]
def find
_find.map do |template|
- View::Template.new(template)
+ View::Template.new(template, @view.configuration.default_encoding)
end
end
protected