Module: Reorm::TableBacked

Included in:
Model
Defined in:
lib/reorm/modules/database_modules.rb

Overview

A module that defines the data and methods for a class that is backed on to a database table.

Class Method Summary collapse

Class Method Details

.included(target) ⇒ Object



45
46
47
48
49
# File 'lib/reorm/modules/database_modules.rb', line 45

def TableBacked.included(target)
  target.extend(ClassDatabaseSettings)
  target.extend(PrimaryKeyedClassMethods)
  target.include(PrimaryKeyedInstanceMethods)
end