Skip to content

Commit

Permalink
use unshift for ruby compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldeitcher committed Jun 24, 2010
1 parent cb020e3 commit d192a32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/inherit_views.rb
Expand Up @@ -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
Expand Down

0 comments on commit d192a32

Please sign in to comment.