Class: ActiveConfiguration::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/active_configuration/table_name.rb

Overview

Holds the configuration details of this ActiveConfiguration install.

Class Method Summary collapse

Class Method Details

.table_nameString

Returns the name of the table holding ActiveConfiguration::Settings. This table defaults to ‘settings` but can be changed with an initializer like:

Rails.configuration.active_configuration_table_name = 'active_configuration_settings'

Returns:

  • (String)

    the table name holding ActiveConfiguration::Settings.



12
13
14
15
16
17
18
# File 'lib/active_configuration/table_name.rb', line 12

def self.table_name
  if Rails.configuration.respond_to?(:active_configuration_table_name)
    return Rails.configuration.active_configuration_table_name
  end

  (Rails.configuration.active_configuration_table_name = 'settings')
end