Sha256: 2da4d7a43f751225f803a3f0e6520b95269b7a48632e6171a5215b7fff6cf395

Contents?: true

Size: 625 Bytes

Versions: 3

Compression:

Stored size: 625 Bytes

Contents

require 'devise/orm/data_mapper/compatibility'
require 'devise/orm/data_mapper/schema'
require 'devise/orm/data_mapper/date_time'
require 'devise/orm/data_mapper/dm-validations'

module Devise
  module Orm
    module DataMapper
      module Hook
        def devise_modules_hook!
          extend Schema
          include Compatibility
          yield
          return unless Devise.apply_schema
          devise_modules.each { |m| send(m) if respond_to?(m, true) }
        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-1.1.1 lib/devise/orm/data_mapper.rb
dm-devise-1.1.0 lib/devise/orm/data_mapper.rb
dm-devise-0.1.0 lib/devise/orm/data_mapper.rb