lib/relaxo/model/properties/bcrypt.rb in relaxo-model-0.5.1 vs lib/relaxo/model/properties/bcrypt.rb in relaxo-model-0.9.0

- old
+ new

@@ -26,10 +26,10 @@ Attribute.for_class(BCrypt::Password) do def convert_to_primative(value) [value.salt, value.checksum] end - def convert_from_primative(database, value) + def convert_from_primative(dataset, value) if String === value # If the primative value is a string, we are saving the password: BCrypt::Password.create(value) else # Otherwise the password is given by an array containing the salt and checksum: