Module: Torque::PostgreSQL::Attributes::Period

Defined in:
lib/torque/postgresql/attributes/period.rb

Overview

For naw, period doesn’t have it’s own class

Class Method Summary collapse

Class Method Details

.include_on(klass, method_name = nil) ⇒ Object

Provide a method on the given class to setup which period columns will be manually initialized



9
10
11
12
# File 'lib/torque/postgresql/attributes/period.rb', line 9

def include_on(klass, method_name = nil)
  method_name ||= Torque::PostgreSQL.config.period.base_method
  Builder.include_on(klass, method_name, Builder::Period)
end