instance method
build_through_conditions
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.0.20Signature
build_through_conditions()
No documentation comment.
Source
# File activerecord/lib/active_record/associations/through_association_scope.rb, line 142
def build_through_conditions
conditions = @reflection.through_reflection.options[:conditions]
if conditions.is_a?(Hash)
interpolate_and_sanitize_sql(conditions, nil, @reflection.through_reflection.klass).gsub(
@reflection.quoted_table_name,
@reflection.through_reflection.quoted_table_name)
elsif conditions
interpolate_and_sanitize_sql(conditions)
end
end
Defined in activerecord/lib/active_record/associations/through_association_scope.rb line 142
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Associations::ThroughAssociationScope