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.



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_globsObject

Returns the value of attribute action_globs.



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

def action_globs
  @action_globs
end

#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

#dashboard_globsObject

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_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

#logout_labelObject

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_methodObject

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_pathObject

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_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

#root_dashboard_definitionObject

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_descriptionObject

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_loadedObject

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_titleObject

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_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