Release 2.2.0.rc

This commit is contained in:
José Valim 2012-12-13 09:20:46 +01:00
parent 839e8fc8ac
commit 30ab6f923d
5 changed files with 15 additions and 9 deletions

View File

@ -1,13 +1,19 @@
* enhancement
* Default minimum password length is now 8 (by @carlosgaldino).
== 2.2.0.rc
* important changes
* Default minimum password length is now 8 (by @carlosgaldino)
* Support alternate sign in error message when email record does not exist (this adds a new I18n key to the locale file) (@gabetax)
* DeviseController responds only to HTML requests by default (call `DeviseController.respond_to` or `ApplicationController.respond_to` to add new formats)
* Support Mongoid 3 onwards (by @durran)
* Fix unlockable which could leak account existence on paranoid mode (by @latortuga)
* enhancements
* Confirmable now has a confirm_within option to set a period while the confirmation token is still valid (by @promisedlandt)
* Make #set_flash_message respect i18n-set resource_name (by @latortuga)
* Flash messages in controller now respects `resource_name` (by @latortuga)
* Separate `sign_in` and `sign_up` on RegistrationsController (by @rubynortheast)
* Add autofocus to default views (by @Radagaisus)
* Support Mongoid 3 onwards (by @durran)
* Unlock user on password reset (by @marcinb)
* Allow validation callbacks to apply to virtual attributes (by @latortuga)
* Support alternate sign in error message when email record does not exist (@gabetax)
* bug fix
* unconfirmed_email now uses the proper e-mail on salutation
@ -18,7 +24,6 @@
* Set the proper fields as required on the lockable module (by @nickhoffman)
* Respects Devise mailer default's reply_to (by @mrchrisadams)
* Properly assign resource on `sign_in` related action (by @adammcnamara)
* Unlockable could leak account existence on paranoid mode (by @latortuga)
* `update_with_password` doesn't change encrypted password when it is invalid (by @nashby)
* Properly handle namespaced models on Active Record generator (by @nashby)

View File

@ -1,7 +1,7 @@
PATH
remote: .
specs:
devise (2.1.2)
devise (2.2.0.rc)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.1)
railties (~> 3.1)

View File

@ -10,7 +10,7 @@ class DeviseController < Devise.parent_controller.constantize
helper_method *helpers
prepend_before_filter :assert_is_devise_resource!
respond_to *Mime::SET.map(&:to_sym) if mimes_for_respond_to.empty?
respond_to :html if mimes_for_respond_to.empty?
# Gets the actual resource stored in the instance variable
def resource

View File

@ -1,3 +1,3 @@
module Devise
VERSION = "2.1.2".freeze
VERSION = "2.2.0.rc".freeze
end

View File

@ -5,4 +5,5 @@ class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :current_user, :unless => :devise_controller?
before_filter :authenticate_user!, :if => :devise_controller?
respond_to *Mime::SET.map(&:to_sym)
end