Class: AdminSuite::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/admin_suite/configuration.rb

Overview

Configuration object for AdminSuite.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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
  @authorize = 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

#authenticateObject

Returns the value of attribute authenticate.



6
7
8
# File 'lib/admin_suite/configuration.rb', line 6

def authenticate
  @authenticate
end

#authorizeObject

Returns the value of attribute authorize.



6
7
8
# File 'lib/admin_suite/configuration.rb', line 6

def authorize
  @authorize
end

#current_actorObject

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_renderersObject

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_pathObject

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_urlObject

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_stylesheetObject

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_rendererObject

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_executedObject

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

#partialsObject

Returns the value of attribute partials.



6
7
8
# File 'lib/admin_suite/configuration.rb', line 6

def partials
  @partials
end

#portal_globsObject

Returns the value of attribute portal_globs.



6
7
8
# File 'lib/admin_suite/configuration.rb', line 6

def portal_globs
  @portal_globs
end

#portalsObject

Returns the value of attribute portals.



6
7
8
# File 'lib/admin_suite/configuration.rb', line 6

def portals
  @portals
end

#resolve_action_handlerObject

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_globsObject

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_cdnObject

Returns the value of attribute tailwind_cdn.



6
7
8
# File 'lib/admin_suite/configuration.rb', line 6

def tailwind_cdn
  @tailwind_cdn
end

#themeObject

Returns the value of attribute theme.



6
7
8
# File 'lib/admin_suite/configuration.rb', line 6

def theme
  @theme
end