Skip to content

Commit

Permalink
Remove "returning" deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Sep 22, 2010
1 parent 9321db9 commit 18284d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/devise/mapping.rb
Expand Up @@ -98,7 +98,7 @@ def raw_path

# Returns the parsed path taking into account the relative url root and raw path.
def parsed_path
returning (ActionController::Base.relative_url_root.to_s + raw_path) do |path|
(ActionController::Base.relative_url_root.to_s + raw_path).tap do |path|
self.class.default_url_options.each do |key, value|
path.gsub!(key.inspect, value.to_param)
end
Expand Down

0 comments on commit 18284d9

Please sign in to comment.