Class: AdminSuite::Configuration
- Inherits:
-
Object
- Object
- AdminSuite::Configuration
- Defined in:
- lib/admin_suite/configuration.rb
Overview
Configuration object for AdminSuite.
Instance Attribute Summary collapse
-
#action_globs ⇒ Object
Returns the value of attribute action_globs.
-
#authenticate ⇒ Object
Returns the value of attribute authenticate.
-
#authorize ⇒ Object
Returns the value of attribute authorize.
-
#current_actor ⇒ Object
Returns the value of attribute current_actor.
-
#custom_renderers ⇒ Object
Returns the value of attribute custom_renderers.
-
#dashboard_globs ⇒ Object
Returns the value of attribute dashboard_globs.
-
#docs_path ⇒ Object
Returns the value of attribute docs_path.
-
#docs_url ⇒ Object
Returns the value of attribute docs_url.
-
#host_stylesheet ⇒ Object
Returns the value of attribute host_stylesheet.
-
#icon_renderer ⇒ Object
Returns the value of attribute icon_renderer.
-
#logout_label ⇒ Object
Returns the value of attribute logout_label.
-
#logout_method ⇒ Object
Returns the value of attribute logout_method.
-
#logout_path ⇒ Object
Returns the value of attribute logout_path.
-
#on_action_executed ⇒ Object
Returns the value of attribute on_action_executed.
-
#partials ⇒ Object
Returns the value of attribute partials.
-
#portal_globs ⇒ Object
Returns the value of attribute portal_globs.
-
#portals ⇒ Object
Returns the value of attribute portals.
-
#resolve_action_handler ⇒ Object
Returns the value of attribute resolve_action_handler.
-
#resource_globs ⇒ Object
Returns the value of attribute resource_globs.
-
#root_dashboard_definition ⇒ Object
Returns the value of attribute root_dashboard_definition.
-
#root_dashboard_description ⇒ Object
Returns the value of attribute root_dashboard_description.
-
#root_dashboard_loaded ⇒ Object
Returns the value of attribute root_dashboard_loaded.
-
#root_dashboard_title ⇒ Object
Returns the value of attribute root_dashboard_title.
-
#tailwind_cdn ⇒ Object
Returns the value of attribute tailwind_cdn.
-
#theme ⇒ Object
Returns the value of attribute theme.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/admin_suite/configuration.rb', line 32 def initialize @authenticate = nil @current_actor = nil @authorize = nil @logout_path = nil @logout_method = :delete @logout_label = "Log out" @resource_globs = [] @action_globs = [] @portal_globs = [] @dashboard_globs = [] @portals = {} @custom_renderers = {} @icon_renderer = nil @docs_url = nil @docs_path = Rails.root.join("docs") @partials = {} @theme = { primary: :indigo, secondary: :purple } @host_stylesheet = nil @tailwind_cdn = true @root_dashboard_title = nil @root_dashboard_description = nil @root_dashboard_definition = nil @root_dashboard_loaded = false @on_action_executed = nil @resolve_action_handler = nil end |
Instance Attribute Details
#action_globs ⇒ Object
Returns the value of attribute action_globs.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def action_globs @action_globs end |
#authenticate ⇒ Object
Returns the value of attribute authenticate.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def authenticate @authenticate end |
#authorize ⇒ Object
Returns the value of attribute authorize.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def @authorize end |
#current_actor ⇒ Object
Returns the value of attribute current_actor.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def current_actor @current_actor end |
#custom_renderers ⇒ Object
Returns the value of attribute custom_renderers.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def custom_renderers @custom_renderers end |
#dashboard_globs ⇒ Object
Returns the value of attribute dashboard_globs.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def dashboard_globs @dashboard_globs end |
#docs_path ⇒ Object
Returns the value of attribute docs_path.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def docs_path @docs_path end |
#docs_url ⇒ Object
Returns the value of attribute docs_url.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def docs_url @docs_url end |
#host_stylesheet ⇒ Object
Returns the value of attribute host_stylesheet.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def host_stylesheet @host_stylesheet end |
#icon_renderer ⇒ Object
Returns the value of attribute icon_renderer.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def icon_renderer @icon_renderer end |
#logout_label ⇒ Object
Returns the value of attribute logout_label.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def logout_label @logout_label end |
#logout_method ⇒ Object
Returns the value of attribute logout_method.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def logout_method @logout_method end |
#logout_path ⇒ Object
Returns the value of attribute logout_path.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def logout_path @logout_path end |
#on_action_executed ⇒ Object
Returns the value of attribute on_action_executed.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def on_action_executed @on_action_executed end |
#partials ⇒ Object
Returns the value of attribute partials.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def partials @partials end |
#portal_globs ⇒ Object
Returns the value of attribute portal_globs.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def portal_globs @portal_globs end |
#portals ⇒ Object
Returns the value of attribute portals.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def portals @portals end |
#resolve_action_handler ⇒ Object
Returns the value of attribute resolve_action_handler.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def resolve_action_handler @resolve_action_handler end |
#resource_globs ⇒ Object
Returns the value of attribute resource_globs.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def resource_globs @resource_globs end |
#root_dashboard_definition ⇒ Object
Returns the value of attribute root_dashboard_definition.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def root_dashboard_definition @root_dashboard_definition end |
#root_dashboard_description ⇒ Object
Returns the value of attribute root_dashboard_description.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def root_dashboard_description @root_dashboard_description end |
#root_dashboard_loaded ⇒ Object
Returns the value of attribute root_dashboard_loaded.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def root_dashboard_loaded @root_dashboard_loaded end |
#root_dashboard_title ⇒ Object
Returns the value of attribute root_dashboard_title.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def root_dashboard_title @root_dashboard_title end |
#tailwind_cdn ⇒ Object
Returns the value of attribute tailwind_cdn.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def tailwind_cdn @tailwind_cdn end |
#theme ⇒ Object
Returns the value of attribute theme.
6 7 8 |
# File 'lib/admin_suite/configuration.rb', line 6 def theme @theme end |