Release Devise 0.4.2 with latest fixes.

This commit is contained in:
José Valim 2009-11-06 14:56:06 -02:00
parent c06d9ad7ae
commit 2c33d0e191
4 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -78,6 +78,9 @@ module Devise
# 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

View File

@ -64,6 +64,7 @@ module ActionController::Routing
#
# 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!

View File

@ -1,3 +1,3 @@
module Devise
VERSION = "0.4.1".freeze
VERSION = "0.4.2".freeze
end