Module: Expansion::ActiveRecord::ClassMethods

Defined in:
lib/activerecord/extensions.rb

Instance Method Summary collapse

Instance Method Details

#expandableObject



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/activerecord/extensions.rb', line 8

def expandable
  include InstanceMethods

  class << self
    def expansion_attributes
      Expansion::Attribute.where( :model_name => self.model_name )
    end
  end

  expandables << self
end

#expandablesObject



20
21
22
# File 'lib/activerecord/extensions.rb', line 20

def expandables
  @expandables ||= []
end