Method: Devise::Orm::DataMapper#find

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

#find(*args) ⇒ Object

Add ActiveRecord like finder



55
56
57
58
59
60
61
62
63
64
65
# File 'lib/devise/orm/data_mapper.rb', line 55

def find(*args)
  options = args.extract_options!
  case args.first
    when :first
      first(options)
    when :all
      all(options)
    else
      get(*args)
  end
end