mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Release Devise 0.4.2 with latest fixes.
This commit is contained in:
parent
c06d9ad7ae
commit
2c33d0e191
4 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
== 0.4.2
|
||||||
|
|
||||||
* deprecations
|
* deprecations
|
||||||
* Renamed mail_sender to mailer_sender
|
* Renamed mail_sender to mailer_sender
|
||||||
|
|
||||||
|
@ -5,6 +7,7 @@
|
||||||
* skip_before_filter added in Devise controllers
|
* skip_before_filter added in Devise controllers
|
||||||
* Use home_or_root_path on require_no_authentication as well
|
* Use home_or_root_path on require_no_authentication as well
|
||||||
* Added devise_controller?, useful to select or reject filters in ApplicationController
|
* 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
|
== 0.4.1
|
||||||
|
|
||||||
|
|
|
@ -78,6 +78,9 @@ module Devise
|
||||||
# Returns the parsed path. If you need meta information in your path_prefix,
|
# 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
|
# you should overwrite this method to use it. The only information supported
|
||||||
# by default is I18n.locale.
|
# 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
|
def parsed_path
|
||||||
raw_path.gsub(":locale", I18n.locale.to_s)
|
raw_path.gsub(":locale", I18n.locale.to_s)
|
||||||
end
|
end
|
||||||
|
|
|
@ -64,6 +64,7 @@ module ActionController::Routing
|
||||||
#
|
#
|
||||||
# map.devise_for :users, :path_prefix => "/:locale"
|
# 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)
|
def devise_for(*resources)
|
||||||
options = resources.extract_options!
|
options = resources.extract_options!
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
module Devise
|
module Devise
|
||||||
VERSION = "0.4.1".freeze
|
VERSION = "0.4.2".freeze
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue