Module: ActiveAdmin::Settings

Extended by:
ActiveSupport::Concern
Included in:
Application
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"

  def initialize
    # You must call this method to initialize the defaults
    initialize_defaults!
  end

Defined Under Namespace

Modules: ClassMethods, InstanceMethods