Class: ActiveConfiguration::Config
- Inherits:
-
Object
- Object
- ActiveConfiguration::Config
- Defined in:
- lib/active_configuration/table_name.rb
Overview
Holds the configuration details of this ActiveConfiguration install.
Class Method Summary collapse
-
.table_name ⇒ String
Returns the name of the table holding ActiveConfiguration::Settings.
Class Method Details
.table_name ⇒ String
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'
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 |