Sha256: a1288691bcd598055c51a8e113fb777aac3ce5cda927e4b1be4401cc2c9a57b7
Contents?: true
Size: 805 Bytes
Versions: 3
Compression:
Stored size: 805 Bytes
Contents
require 'dm-devise' require 'devise/orm/data_mapper/compatibility' require 'devise/orm/data_mapper/date_time' require 'devise/orm/data_mapper/validations/dm-validations' require 'devise/orm/data_mapper/validations/active_model' require 'orm_adapter/adapters/data_mapper' module Devise module Orm module DataMapper module Hook def devise_modules_hook! if Devise.data_mapper_validation_lib == 'active_model' include ActiveModel::Validations include ActiveModelCompatibility extend ActiveModelUniquenessCompatibility end include Compatibility yield end end end end end DataMapper::Model.append_extensions(Devise::Models) DataMapper::Model.append_extensions(Devise::Orm::DataMapper::Hook)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dm-devise-2.2.1 | lib/devise/orm/data_mapper.rb |
dm-devise-2.2.0 | lib/devise/orm/data_mapper.rb |
dm-devise-2.1.0 | lib/devise/orm/data_mapper.rb |