class ActsAsTable::Configuration

ActsAsTable configuration object.

Attributes

adapter[RW]

@!attribute [rw] adapter

Returns the ActsAsTable adapter object (default: `ActsAsTable::Adapter.new`).

@return [ActsAsTable::Adapter]
formats[RW]

@!attribute [rw] formats

Returns the non-inherited constant names for available ActsAsTable serialization format modules (default: `[]`).

@return [Array<Symbol>]

Public Class Methods

new() click to toggle source

Returns a new ActsAsTable configuration object.

@return [ActsAsTable::Configuration]

# File lib/acts_as_table.rb, line 203
def initialize
  @adapter = ActsAsTable::Adapter.new

  @formats = []

  @belongs_tos_table = :belongs_tos
  @column_models_table = :column_models
  @foreign_key_maps_table = :foreign_key_maps
  @foreign_keys_table = :foreign_keys
  @has_manies_table = :has_manies
  @has_many_targets_table = :has_many_targets
  @lenses_table = :lenses
  @primary_keys_table = :primary_keys
  @record_errors_table = :record_errors
  @record_models_table = :record_models
  @records_table = :records
  @row_models_table = :row_models
  @tables_table = :tables
  @values_table = :values
end