1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Modified the datamapper orm so that it actually works with devise

Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
Philip MacIver 2010-03-06 16:05:30 +01:00 committed by José Valim
parent 0a0d7ba577
commit d64e146ec9

View file

@ -24,9 +24,10 @@ module Devise
def apply_schema(name, type, options={})
SCHEMA_OPTIONS.each do |old_key, new_key|
next unless options.key?(old_key)
options[new_key] = !options.delete(old_key)
options[new_key] = options.delete(old_key)
end
options.delete(:default)
property name, type, options
end
end
@ -81,6 +82,6 @@ module Devise
end
DataMapper::Model.class_eval do
extend Devise::Orm::DataMapper::Hook
include Devise::Models
include Devise::Orm::DataMapper::Hook
end