Class: BCrypt::Password
- Inherits:
-
String
- Object
- String
- BCrypt::Password
- Defined in:
- lib/mongoid/bcrypt/ruby.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.demongoize(password) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/mongoid/bcrypt/ruby.rb', line 11 def demongoize(password) case password when String then self.new(password) when nil then nil else password end end |
.evolve(password) ⇒ Object
19 20 21 |
# File 'lib/mongoid/bcrypt/ruby.rb', line 19 def evolve(password) password.mongoize end |
.mongoize(password) ⇒ Object
7 8 9 |
# File 'lib/mongoid/bcrypt/ruby.rb', line 7 def mongoize(password) password.mongoize end |
Instance Method Details
#mongoize ⇒ Object
24 25 26 |
# File 'lib/mongoid/bcrypt/ruby.rb', line 24 def mongoize self.to_s end |