Module: ActiveAdmin::Settings
- Extended by:
- ActiveSupport::Concern
- Included in:
- Application, Namespace
- Defined in:
- lib/active_admin/helpers/settings.rb
Overview
Adds a class method to a class to create settings with default values.
Example:
class Configuration
include ActiveAdmin::Settings
setting :site_title, "Default Site Title"
end
conf = Configuration.new
conf.site_title #=> "Default Site Title"
conf.site_title = "Override Default"
conf.site_title #=> "Override Default"
Defined Under Namespace
Modules: ClassMethods, InstanceMethods