Module: Ci::StaticModel::ClassMethods

Defined in:
lib/ci/static_model.rb

Instance Method Summary collapse

Instance Method Details

#base_classObject

Used by ActiveRecord's polymorphic association to set object_type


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

def base_class
  self
end

#primary_keyObject

Used by ActiveRecord's polymorphic association to set object_id


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

def primary_key
  'id'
end