String
# File lib/dm-types/bcrypt_hash.rb, line 24 24: def dump(value) 25: load(value) 26: end
# File lib/dm-types/bcrypt_hash.rb, line 14 14: def load(value) 15: unless value.nil? 16: begin 17: primitive?(value) ? value : BCrypt::Password.new(value) 18: rescue BCrypt::Errors::InvalidHash 19: BCrypt::Password.create(value, :cost => BCrypt::Engine::DEFAULT_COST) 20: end 21: end 22: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.