Module: ActiveRecord::Collections::Relation::ClassMethods
- Defined in:
- lib/active_record/collections/relation.rb
Instance Method Summary collapse
- #distinct(bool = true) ⇒ Object
- #includes(*args) ⇒ Object
- #joins(*args) ⇒ Object
- #limit(*args, &block) ⇒ Object
- #order(*args, &block) ⇒ Object
- #references(*table_names) ⇒ Object
- #select(*args) ⇒ Object
- #where(*args, &block) ⇒ Object
Instance Method Details
#distinct(bool = true) ⇒ Object
13 14 15 |
# File 'lib/active_record/collections/relation.rb', line 13 def distinct(bool=true) new.distinct(bool) end |
#includes(*args) ⇒ Object
33 34 35 |
# File 'lib/active_record/collections/relation.rb', line 33 def includes(*args) new.includes(*args) end |
#joins(*args) ⇒ Object
29 30 31 |
# File 'lib/active_record/collections/relation.rb', line 29 def joins(*args) new.joins(*args) end |
#limit(*args, &block) ⇒ Object
25 26 27 |
# File 'lib/active_record/collections/relation.rb', line 25 def limit(*args, &block) new.limit(*args, &block) end |
#order(*args, &block) ⇒ Object
21 22 23 |
# File 'lib/active_record/collections/relation.rb', line 21 def order(*args, &block) new.order(*args, &block) end |
#references(*table_names) ⇒ Object
37 38 39 |
# File 'lib/active_record/collections/relation.rb', line 37 def references(*table_names) new.references(*table_names) end |
#select(*args) ⇒ Object
9 10 11 |
# File 'lib/active_record/collections/relation.rb', line 9 def select(*args) new.select(*args) end |
#where(*args, &block) ⇒ Object
17 18 19 |
# File 'lib/active_record/collections/relation.rb', line 17 def where(*args, &block) new.where(*args, &block) end |