Module: WithProperties::Core::ClassMethods

Defined in:
lib/with_properties/core.rb

Instance Method Summary collapse

Instance Method Details

#with_properties(table) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/with_properties/core.rb', line 10

def with_properties table
  properties = table.to_s
  has_one table
  before_save :save_properties

  define_getters_and_setters(properties)
  define_save_properties(properties)
  override_create(properties)
end