Permalink
Browse files

Initialize #min_cost to avoid warning in Ruby 2.0

  • Loading branch information...
1 parent 6c5bd10 commit 0b63da9d5aad9382515cc04f840a4ad73c269d4d @carlosantoniodasilva carlosantoniodasilva committed Nov 17, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 activemodel/lib/active_model/secure_password.rb
@@ -3,6 +3,7 @@ module SecurePassword
extend ActiveSupport::Concern
class << self; attr_accessor :min_cost; end
+ self.min_cost = false
module ClassMethods
# Adds methods to set and authenticate against a BCrypt password.
@@ -13,8 +14,8 @@ module ClassMethods
# you wish to turn off validations, pass <tt>validations: false</tt> as an
# argument. You can add more validations by hand if need be.
#
- # If you don't need the confirmation validation, just don't set any
- # value to the password_confirmation attribute and the the validation
+ # If you don't need the confirmation validation, just don't set any
+ # value to the password_confirmation attribute and the the validation
# will not be triggered.
#
# You need to add bcrypt-ruby (~> 3.0.0) to Gemfile to use #has_secure_password:

0 comments on commit 0b63da9

Please sign in to comment.