Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Release Devise 0.4.2 with latest fixes.

  • Loading branch information...
commit 2c33d0e19175147465346b0b8fa8589c88b5851f 1 parent c06d9ad
José Valim josevalim authored
3  CHANGELOG.rdoc
View
@@ -1,3 +1,5 @@
+== 0.4.2
+
* deprecations
* Renamed mail_sender to mailer_sender
@@ -5,6 +7,7 @@
* skip_before_filter added in Devise controllers
* Use home_or_root_path on require_no_authentication as well
* Added devise_controller?, useful to select or reject filters in ApplicationController
+ * Allow :path_prefix to be given to devise_for (:path_prefix => "/:locale" is supported)
== 0.4.1
3  lib/devise/mapping.rb
View
@@ -78,6 +78,9 @@ def raw_path
# 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.
+ #
+ # TODO This is a hack. Setting default_url_options that are shared by
+ # controllers and devise seems to be the best solution.
def parsed_path
raw_path.gsub(":locale", I18n.locale.to_s)
end
1  lib/devise/rails/routes.rb
View
@@ -64,6 +64,7 @@ class Mapper #:doc:
#
# map.devise_for :users, :path_prefix => "/:locale"
#
+ # When setting a dynamic path prefix, be sure to set default_url_options with the locale on your ApplicationController as well.
def devise_for(*resources)
options = resources.extract_options!
2  lib/devise/version.rb
View
@@ -1,3 +1,3 @@
module Devise
- VERSION = "0.4.1".freeze
+ VERSION = "0.4.2".freeze
end
Please sign in to comment.
Something went wrong with that request. Please try again.