diff --git a/lib/inherit_views.rb b/lib/inherit_views.rb index c03fa66..ebc1bab 100644 --- a/lib/inherit_views.rb +++ b/lib/inherit_views.rb @@ -158,7 +158,7 @@ def view_paths_with_inherit_views=(value) def render_with_parent(*args, &block) if args.first == :parent args.shift - args.first[:file] = view_paths.find_parent_template(template.to_s, template.format) + args.unshift(:file => view_paths.find_parent_template(template.to_s, template.format)) end render_without_parent(*args, &block) end