Module: Expansion::ActiveRecord::ClassMethods
- Defined in:
- lib/activerecord/extensions.rb
Instance Method Summary collapse
Instance Method Details
#expandable ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/activerecord/extensions.rb', line 8 def include InstanceMethods class << self def expansion_attributes Expansion::Attribute.where( :model_name => self.model_name ) end end << self end |
#expandables ⇒ Object
20 21 22 |
# File 'lib/activerecord/extensions.rb', line 20 def @expandables ||= [] end |