Module: OtherJoinsMethods
- Extended by:
- ActiveSupport::Concern
- Included in:
- ActiveRecord::Relation
- Defined in:
- lib/other_joins/activerecord-3/other_joins_methods.rb,
lib/other_joins/activerecord-4.0/other_joins_methods.rb,
lib/other_joins/activerecord-4.1/other_joins_methods.rb
Instance Method Summary collapse
- #left_joins(*args) ⇒ Object (also: #outer_joins)
Instance Method Details
#left_joins(*args) ⇒ Object Also known as: outer_joins
4 5 6 7 8 9 10 11 |
# File 'lib/other_joins/activerecord-3/other_joins_methods.rb', line 4 def left_joins(*args) join_dependency = ActiveRecord::Associations::ClassMethods::LeftJoinDependency.new( @klass, args, [] ) joins(join_dependency.join_associations) end |