Module: BabySqueel::ActiveRecord::QueryMethods
- Defined in:
- lib/baby_squeel/active_record/query_methods.rb
Instance Method Summary collapse
-
#grouping(&block) ⇒ Object
Constructs Arel for ActiveRecord::QueryMethods#group using the DSL.
-
#joining(&block) ⇒ Object
Constructs Arel for ActiveRecord::QueryMethods#joins using the DSL.
-
#ordering(&block) ⇒ Object
Constructs Arel for ActiveRecord::QueryMethods#order using the DSL.
-
#reordering(&block) ⇒ Object
Constructs Arel for ActiveRecord::QueryMethods#reorder using the DSL.
-
#selecting(&block) ⇒ Object
Constructs Arel for ActiveRecord::QueryMethods#select using the DSL.
-
#when_having(&block) ⇒ Object
Constructs Arel for ActiveRecord::QueryMethods#having using the DSL.
Instance Method Details
#grouping(&block) ⇒ Object
Constructs Arel for ActiveRecord::QueryMethods#group using the DSL.
28 29 30 |
# File 'lib/baby_squeel/active_record/query_methods.rb', line 28 def grouping(&block) group DSL.evaluate(self, &block) end |
#joining(&block) ⇒ Object
Constructs Arel for ActiveRecord::QueryMethods#joins using the DSL.
8 9 10 |
# File 'lib/baby_squeel/active_record/query_methods.rb', line 8 def joining(&block) joins DSL.evaluate(self, &block) end |
#ordering(&block) ⇒ Object
Constructs Arel for ActiveRecord::QueryMethods#order using the DSL.
18 19 20 |
# File 'lib/baby_squeel/active_record/query_methods.rb', line 18 def ordering(&block) order DSL.evaluate(self, &block) end |
#reordering(&block) ⇒ Object
Constructs Arel for ActiveRecord::QueryMethods#reorder using the DSL.
23 24 25 |
# File 'lib/baby_squeel/active_record/query_methods.rb', line 23 def reordering(&block) reorder DSL.evaluate(self, &block) end |