Module: Ooor::FinderMethods::ClassMethods
- Defined in:
 - lib/ooor/relation/finder_methods.rb
 
Instance Method Summary collapse
Instance Method Details
#find(*arguments) ⇒ Object
      8 9 10 11 12 13 14 15 16  | 
    
      # File 'lib/ooor/relation/finder_methods.rb', line 8 def find(*arguments) if arguments.size == 1 && arguments[0].is_a?(Hash) || (arguments[0].is_a?(Array) && !([arguments[0][1]] & Ooor::TypeCasting::OPERATORS).empty?) find_single(nil, {domain: arguments[0]}) else find_dispatch(*arguments) end end  |