Permalink
Browse files

Ensure options can be configured even if models were not loaded yet

  • Loading branch information...
1 parent c1d2796 commit e5be5326b42ce41f860adcc72cbfd4177c51d245 @josevalim josevalim committed Nov 4, 2009
Showing with 12 additions and 3 deletions.
  1. +8 −1 CHANGELOG.rdoc
  2. +3 −0 lib/devise.rb
  3. +0 −1 lib/devise/models.rb
  4. +1 −1 lib/devise/version.rb
View
@@ -1,11 +1,18 @@
+== 0.4.1
+
+* bug fix
+ * [#21] Ensure options can be set even if models were not loaded
+
+== 0.4.0
+
* deprecations
* Notifier is deprecated, use DeviseMailer instead. Remember to rename
app/views/notifier to app/views/devise_mailer and I18n key from
devise.notifier to devise.mailer
* :authenticable calls are deprecated, use :authenticatable instead
* enhancements
- * [#16] Allow devise to be more agnostic. Do not require ActiveRecord to be loaded.
+ * [#16] Allow devise to be more agnostic and do not require ActiveRecord to be loaded
* Allow Warden::Manager to be configured through Devise
* Created a generator which creates an initializer
View
@@ -11,6 +11,9 @@ module Devise
STRATEGIES = [:rememberable, :authenticatable].freeze
TRUE_VALUES = [true, 1, '1', 't', 'T', 'true', 'TRUE'].freeze
+ # Models configuration
+ mattr_accessor :pepper, :stretches, :remember_for, :confirm_within
+
class << self
# Default way to setup Devise. Run script/generate devise_install to create
# a fresh initializer with all configuration values.
View
@@ -17,7 +17,6 @@ module Models
# inside the given class.
#
def self.config(mod, accessor, default=nil) #:nodoc:
- Devise.send :mattr_accessor, accessor
Devise.send :"#{accessor}=", default
mod.class_eval <<-METHOD, __FILE__, __LINE__
View
@@ -1,3 +1,3 @@
module Devise
- VERSION = "0.4.0".freeze
+ VERSION = "0.4.1".freeze
end

0 comments on commit e5be532

Please sign in to comment.