Class: AdminSuite::Configuration
- Inherits:
-
Object
- Object
- AdminSuite::Configuration
- Defined in:
- lib/admin_suite/configuration.rb
Overview
Configuration object for AdminSuite.
Instance Attribute Summary collapse
-
#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.
-
#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.
-
#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.
-
#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.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/admin_suite/configuration.rb', line 23 def initialize @authenticate = nil @current_actor = nil = nil @resource_globs = [] @portal_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 @on_action_executed = nil @resolve_action_handler = nil end |
Instance Attribute Details
#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 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 |
#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 |
#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 |
#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 |