Class: ActiveRecord::Associations::JoinDependency
- Inherits:
-
Object
- Object
- ActiveRecord::Associations::JoinDependency
- Defined in:
- lib/left_joins.rb
Instance Method Summary collapse
- #build(associations, parent = nil, join_type = Arel::Nodes::InnerJoin) ⇒ Object
- #build_without_hooking_join_type ⇒ Object
- #make_constraints(*args, join_type) ⇒ Object
- #make_constraints_without_hooking_join_type ⇒ Object
Instance Method Details
#build(associations, parent = nil, join_type = Arel::Nodes::InnerJoin) ⇒ Object
75 76 77 78 |
# File 'lib/left_joins.rb', line 75 def build(associations, parent = nil, join_type = Arel::Nodes::InnerJoin) join_type = Thread.current.thread_variable_get(:left_joins_join_type) || join_type return build_without_hooking_join_type(associations, parent, join_type) end |
#build_without_hooking_join_type ⇒ Object
74 |
# File 'lib/left_joins.rb', line 74 alias_method :build_without_hooking_join_type, :build |
#make_constraints(*args, join_type) ⇒ Object
69 70 71 72 |
# File 'lib/left_joins.rb', line 69 def make_constraints(*args, join_type) join_type = Thread.current.thread_variable_get(:left_joins_join_type) || join_type return make_constraints_without_hooking_join_type(*args, join_type) end |
#make_constraints_without_hooking_join_type ⇒ Object
68 |
# File 'lib/left_joins.rb', line 68 alias_method :make_constraints_without_hooking_join_type, :make_constraints |