Module: Devise::Orm::DataMapper::Hook

Defined in:
lib/devise/orm/data_mapper.rb

Instance Method Summary collapse

Instance Method Details

#devise_modules_hook!Object



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/devise/orm/data_mapper.rb', line 12

def devise_modules_hook!
  if Devise.data_mapper_validation_lib == 'active_model'
    include ActiveModel::Validations
    include ActiveModelCompatibility
    extend ActiveModelUniquenessCompatibility
  end

  include Compatibility

  yield
end