lib/devise/mapping.rb in devise-0.8.1 vs lib/devise/mapping.rb in devise-0.8.2

- old
+ new

@@ -90,12 +90,12 @@ # Return in which position in the path prefix devise should find the as mapping. def as_position self.path_prefix.count("/") end - # Returns the raw path using path_prefix and as. + # Returns the raw path using the current relative_url_root, path_prefix and as. def raw_path - path_prefix + as.to_s + ActionController::Base.relative_url_root.to_s + path_prefix + as.to_s end # Returns the parsed path. If you need meta information in your path_prefix, # you should overwrite this method to use it. The only information supported # by default is I18n.locale.