Module: StaticModel::ClassMethods

Defined in:
lib/static_model.rb

Instance Method Summary collapse

Instance Method Details

#base_classObject

Used by ActiveRecord's polymorphic association to set object_type


12
13
14
# File 'lib/static_model.rb', line 12

def base_class
  self
end

#primary_keyObject

Used by ActiveRecord's polymorphic association to set object_id


7
8
9
# File 'lib/static_model.rb', line 7

def primary_key
  'id'
end