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:
parent
0a0d7ba577
commit
d64e146ec9
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue