Module: Ratlas::Queryable::ClassMethods
- Defined in:
- lib/ratlas/queryable.rb
Instance Method Summary collapse
Instance Method Details
#find(args) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/ratlas/queryable.rb', line 14 def find(args) if args.is_a?(Symbol) Ratlas::Query.new(self, args) elsif args.is_a?(Hash) Ratlas::Query.new(self, :all, args) end end |
#where(args) ⇒ Object
10 11 12 |
# File 'lib/ratlas/queryable.rb', line 10 def where(args) find(args) end |