module Devise::Orm::MongoMapper
def self.included_modules_hook(klass)
def self.included_modules_hook(klass) klass.send :extend, self klass.send :include, InstanceMethods yield klass.devise_modules.each do |mod| klass.send(mod) if klass.respond_to?(mod) end end
def apply_schema(name, type, options={})
Tell how to apply schema methods. This automatically converts DateTime
def apply_schema(name, type, options={}) return unless Devise.apply_schema type = Time if type == DateTime key name, type, options end
def find(*args)
def find(*args) case args.first when :first, :all send(args.shift, *args) else super end end