Module: NestedHasManyThrough
- Defined in:
- lib/nested_has_many_through.rb,
lib/nested_has_many_through/version.rb,
lib/nested_has_many_through/reflection.rb,
lib/nested_has_many_through/association.rb
Defined Under Namespace
Modules: Association, Reflection
Constant Summary collapse
- VERSION =
"0.0.2"
Instance Method Summary collapse
Instance Method Details
#belongs_to_quoted_key ⇒ Object
128 129 130 131 |
# File 'lib/nested_has_many_through/association.rb', line 128 def belongs_to_quoted_key attribute, col = @reflection.through_reflection.primary_key_name, @owner.column_for_attribute(attribute) @owner.send(:quote_value, @owner.send(attribute), col) end |