Sha256: 03df9058ea4947f1abfce9637c9e3ca7f7ba0bfc363f5f445ac9556542cf30aa

Contents?: true

Size: 1.72 KB

Versions: 29

Compression:

Stored size: 1.72 KB

Contents

# frozen_string_literal: true
require "active_admin/settings_node"

module ActiveAdmin
  class ApplicationSettings < SettingsNode

    # The default namespace to put controllers and routes inside. Set this
    # in config/initializers/active_admin.rb using:
    #
    #   config.default_namespace = :super_admin
    #
    register :default_namespace, :admin

    register :app_path, Rails.root

    # Load paths for admin configurations. Add folders to this load path
    # to load up other resources for administration. External gems can
    # include their paths in this load path to provide active_admin UIs
    register :load_paths, [File.expand_path("app/admin", Rails.root)]

    # Set default localize format for Date/Time values
    register :localize_format, :long

    # Active Admin makes educated guesses when displaying objects, this is
    # the list of methods it tries calling in order
    # Note that Formtastic also has 'collection_label_methods' similar to this
    # used by auto generated dropdowns in filter or belongs_to field of Active Admin
    register :display_name_methods, [ :display_name,
                                      :full_name,
                                      :name,
                                      :username,
                                      :login,
                                      :title,
                                      :email,
                                      :to_s ]

    # To make debugging easier, by default don't stream in development
    register :disable_streaming_in, ["development"]

    # Remove sensitive attributes from being displayed, made editable, or exported by default
    register :filter_attributes, [:encrypted_password, :password, :password_confirmation]
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
activeadmin-4.0.0.beta12 lib/active_admin/application_settings.rb
activeadmin-3.2.5 lib/active_admin/application_settings.rb
activeadmin-4.0.0.beta11 lib/active_admin/application_settings.rb
activeadmin-3.2.4 lib/active_admin/application_settings.rb
activeadmin-4.0.0.beta10 lib/active_admin/application_settings.rb
activeadmin-4.0.0.beta9 lib/active_admin/application_settings.rb
activeadmin-3.2.3 lib/active_admin/application_settings.rb
activeadmin-4.0.0.beta8 lib/active_admin/application_settings.rb
activeadmin-4.0.0.beta7 lib/active_admin/application_settings.rb
activeadmin-3.2.2 lib/active_admin/application_settings.rb
activeadmin-4.0.0.beta6 lib/active_admin/application_settings.rb
activeadmin-3.2.1 lib/active_admin/application_settings.rb
activeadmin-4.0.0.beta5 lib/active_admin/application_settings.rb
activeadmin-4.0.0.beta4 lib/active_admin/application_settings.rb
activeadmin-4.0.0.beta3 lib/active_admin/application_settings.rb
activeadmin-4.0.0.beta2 lib/active_admin/application_settings.rb
activeadmin-4.0.0.beta1 lib/active_admin/application_settings.rb
activeadmin-3.2.0 lib/active_admin/application_settings.rb
activeadmin-3.1.0 lib/active_admin/application_settings.rb
activeadmin-3.0.0 lib/active_admin/application_settings.rb