Skip to content

Commit

Permalink
Object#returning is being deprecated/removed from Rails.
Browse files Browse the repository at this point in the history
  • Loading branch information
thedarkone committed Aug 13, 2010
1 parent f11c431 commit edb72d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/inherit_views.rb
Expand Up @@ -143,7 +143,7 @@ def self.process_view_paths(value)

# set the view_paths, and afterwards pass it my controller's inherit_view_paths
def view_paths_with_inherit_views=(value)
returning self.view_paths_without_inherit_views=(value) do
(self.view_paths_without_inherit_views = value).tap do
@view_paths.inherit_view_paths = controller.inherit_view_paths if (controller.inherit_views? rescue false)
end
end
Expand Down

0 comments on commit edb72d1

Please sign in to comment.