class Outpost::Config

Constants

DEFAULTS

Attributes

authentication_attribute[W]

Which attribute to use to authenticate

excluded_form_fields[W]

Ignore these attributes when building a basic form

excluded_list_columns[W]

Ignore these attributes when building a basic list

preferences[W]
registered_models[W]

An array of models that should show up

title_attributes[W]

Which attributes to look at for `to_title`

user_class[W]

Public Class Methods

configure() { |config| ... } click to toggle source

Pass a block to this method to define the configuration If no block is passed, config will be defaults

# File lib/outpost/config.rb, line 18
def self.configure
  yield Outpost.config if block_given?
  Outpost.config
end

Public Instance Methods

authentication_attribute() click to toggle source
# File lib/outpost/config.rb, line 41
def authentication_attribute
  @authentication_attribute || DEFAULTS[:authentication_attribute]
end
excluded_form_fields() click to toggle source
# File lib/outpost/config.rb, line 53
def excluded_form_fields
  (@excluded_form_fields ||= []) | DEFAULTS[:excluded_form_fields]
end
excluded_list_columns() click to toggle source
# File lib/outpost/config.rb, line 59
def excluded_list_columns
  (@excluded_list_columns ||= []) | DEFAULTS[:excluded_list_columns]
end
preferences() click to toggle source
# File lib/outpost/config.rb, line 30
def preferences
  @preferences || DEFAULTS[:preferences]
end
registered_models() click to toggle source
# File lib/outpost/config.rb, line 25
def registered_models
  @registered_models || []
end
title_attributes() click to toggle source
# File lib/outpost/config.rb, line 47
def title_attributes
  (@title_attributes ||= DEFAULTS[:title_attributes]) | [:simple_title]
end
user_class() click to toggle source
# File lib/outpost/config.rb, line 35
def user_class
  @user_class || DEFAULTS[:user_class]
end