Class: ActiveRecord::Associations::AssociationProxy
- Inherits:
-
Object
- Object
- ActiveRecord::Associations::AssociationProxy
- Defined in:
- lib/active_record/connection_adapters/ibm_db_pstmt.rb
Overview
End of module ClassMethods
Direct Known Subclasses
Instance Method Summary collapse
- #conditions ⇒ Object (also: #sql_conditions)
Instance Method Details
#conditions ⇒ Object Also known as: sql_conditions
1795 1796 1797 1798 1799 1800 1801 1802 |
# File 'lib/active_record/connection_adapters/ibm_db_pstmt.rb', line 1795 def conditions if @reflection.sanitized_conditions sql_param_hash = @reflection.sanitized_conditions temp_condition = [interpolate_sql(sql_param_hash["sqlSegment"])] temp_condition = temp_condition + sql_param_hash["paramArray"] unless sql_param_hash["paramArray"].nil? @conditions ||= temp_condition end end |