Class: ActiveRecord::Associations::JoinDependency

Inherits:
Object
  • Object
show all
Defined in:
lib/left_joins.rb

Instance Method Summary collapse

Instance Method Details

#build(associations, parent = nil, join_type = Arel::Nodes::InnerJoin) ⇒ Object



88
89
90
91
# File 'lib/left_joins.rb', line 88

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_typeObject



87
# File 'lib/left_joins.rb', line 87

alias_method :build_without_hooking_join_type, :build

#make_constraints(*args, join_type) ⇒ Object



82
83
84
85
# File 'lib/left_joins.rb', line 82

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_typeObject



81
# File 'lib/left_joins.rb', line 81

alias_method :make_constraints_without_hooking_join_type, :make_constraints