Sha256: c0c8d87b6d05bb83ca5fd3e57cf5a7b02ed1b2b1cb953562543b3481614abc79

Contents?: true

Size: 515 Bytes

Versions: 13

Compression:

Stored size: 515 Bytes

Contents

module Torque
  module PostgreSQL
    module Attributes
      # For naw, period doesn't have it's own class
      module Period
        class << self
          # Provide a method on the given class to setup which period columns
          # will be manually initialized
          def include_on(klass, method_name = nil)
            method_name ||= Torque::PostgreSQL.config.period.base_method
            Builder.include_on(klass, method_name, Builder::Period)
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
torque-postgresql-1.1.8 lib/torque/postgresql/attributes/period.rb
torque-postgresql-1.1.7 lib/torque/postgresql/attributes/period.rb
torque-postgresql-2.0.3 lib/torque/postgresql/attributes/period.rb
torque-postgresql-2.0.2 lib/torque/postgresql/attributes/period.rb
torque-postgresql-1.1.6 lib/torque/postgresql/attributes/period.rb
torque-postgresql-1.1.5 lib/torque/postgresql/attributes/period.rb
torque-postgresql-2.0.1 lib/torque/postgresql/attributes/period.rb
torque-postgresql-2.0.0 lib/torque/postgresql/attributes/period.rb
torque-postgresql-1.1.4 lib/torque/postgresql/attributes/period.rb
torque-postgresql-1.1.3 lib/torque/postgresql/attributes/period.rb
torque-postgresql-1.1.2 lib/torque/postgresql/attributes/period.rb
torque-postgresql-1.1.1 lib/torque/postgresql/attributes/period.rb
torque-postgresql-1.1.0 lib/torque/postgresql/attributes/period.rb