Module: ActiveRecordInheritAssocPrepend
- Defined in:
- lib/active_record_inherit_assoc.rb
Instance Method Summary collapse
Instance Method Details
#target_scope ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/active_record_inherit_assoc.rb', line 22 def target_scope if inherited_attributes = attribute_inheritance_hash super.where(inherited_attributes) else super end end |