Class: Spina::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/spina.rb', line 42

def initialize
  @api_key = nil
  @api_path = "api"
  @authentication = "Spina::Authentication::Sessions"
  @backend_title = "Spina CMS"
  @backend_path = "admin"
  @disable_frontend_routes = false
  @disable_decorator_load = false
  @disable_current_account = false
  @embedded_image_size = [2000, 2000]
  @mailer_defaults = ActiveSupport::OrderedOptions.new
  @thumbnail_image_size = [400, 400]
  @frontend_parent_controller = "ApplicationController"
  @locales = [I18n.default_locale]
  @resource_pages_limit_value = 25
  @party_pooper = false
  @transliterations = %i[latin]
  @queues = ActiveSupport::InheritableOptions.new
  @importmap = Importmap::Map.new
  @tailwind_plugins = %w[@tailwindcss/forms @tailwindcss/aspect-ratio @tailwindcss/typography]
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



22
23
24
# File 'lib/spina.rb', line 22

def api_key
  @api_key
end

#api_pathObject

Returns the value of attribute api_path.



22
23
24
# File 'lib/spina.rb', line 22

def api_path
  @api_path
end

#authenticationObject

Returns the value of attribute authentication.



22
23
24
# File 'lib/spina.rb', line 22

def authentication
  @authentication
end

#backend_pathObject

Returns the value of attribute backend_path.



22
23
24
# File 'lib/spina.rb', line 22

def backend_path
  @backend_path
end

#backend_titleObject

Returns the value of attribute backend_title.



22
23
24
# File 'lib/spina.rb', line 22

def backend_title
  @backend_title
end

#disable_current_accountObject

Returns the value of attribute disable_current_account.



22
23
24
# File 'lib/spina.rb', line 22

def 
  @disable_current_account
end

#disable_decorator_loadObject

Returns the value of attribute disable_decorator_load.



22
23
24
# File 'lib/spina.rb', line 22

def disable_decorator_load
  @disable_decorator_load
end

#disable_frontend_routesObject

Returns the value of attribute disable_frontend_routes.



22
23
24
# File 'lib/spina.rb', line 22

def disable_frontend_routes
  @disable_frontend_routes
end

#embedded_image_sizeObject

Returns the value of attribute embedded_image_size.



22
23
24
# File 'lib/spina.rb', line 22

def embedded_image_size
  @embedded_image_size
end

#frontend_parent_controllerObject

Returns the value of attribute frontend_parent_controller.



22
23
24
# File 'lib/spina.rb', line 22

def frontend_parent_controller
  @frontend_parent_controller
end

#importmapObject

Returns the value of attribute importmap.



22
23
24
# File 'lib/spina.rb', line 22

def importmap
  @importmap
end

#localesObject

Returns the value of attribute locales.



22
23
24
# File 'lib/spina.rb', line 22

def locales
  @locales
end

#mailer_defaultsObject

Returns the value of attribute mailer_defaults.



22
23
24
# File 'lib/spina.rb', line 22

def mailer_defaults
  @mailer_defaults
end

#party_pooperObject

Returns the value of attribute party_pooper.



22
23
24
# File 'lib/spina.rb', line 22

def party_pooper
  @party_pooper
end

#queuesObject

Returns the value of attribute queues.



22
23
24
# File 'lib/spina.rb', line 22

def queues
  @queues
end

#resource_pages_limit_valueObject

Returns the value of attribute resource_pages_limit_value.



22
23
24
# File 'lib/spina.rb', line 22

def resource_pages_limit_value
  @resource_pages_limit_value
end

#tailwind_contentObject



64
65
66
67
68
69
70
71
72
# File 'lib/spina.rb', line 64

def tailwind_content
  @tailwind_content ||= [
    "#{Spina::Engine.root}/app/views/**/*.*",
    "#{Spina::Engine.root}/app/components/**/*.*",
    "#{Spina::Engine.root}/app/helpers/**/*.*",
    "#{Spina::Engine.root}/app/assets/javascripts/**/*.js",
    "#{Spina::Engine.root}/app/**/application.tailwind.css"
  ]
end

#tailwind_pluginsObject

Returns the value of attribute tailwind_plugins.



22
23
24
# File 'lib/spina.rb', line 22

def tailwind_plugins
  @tailwind_plugins
end

#thumbnail_image_sizeObject

Returns the value of attribute thumbnail_image_size.



22
23
24
# File 'lib/spina.rb', line 22

def thumbnail_image_size
  @thumbnail_image_size
end

#transliterationsObject

Returns the value of attribute transliterations.



22
23
24
# File 'lib/spina.rb', line 22

def transliterations
  @transliterations
end