Class: Spina::Configuration
- Inherits:
-
Object
- Object
- Spina::Configuration
- Defined in:
- lib/spina.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_path ⇒ Object
Returns the value of attribute api_path.
-
#authentication ⇒ Object
Returns the value of attribute authentication.
-
#backend_path ⇒ Object
Returns the value of attribute backend_path.
-
#backend_title ⇒ Object
Returns the value of attribute backend_title.
-
#disable_current_account ⇒ Object
Returns the value of attribute disable_current_account.
-
#disable_decorator_load ⇒ Object
Returns the value of attribute disable_decorator_load.
-
#disable_frontend_routes ⇒ Object
Returns the value of attribute disable_frontend_routes.
-
#embedded_image_size ⇒ Object
Returns the value of attribute embedded_image_size.
-
#frontend_parent_controller ⇒ Object
Returns the value of attribute frontend_parent_controller.
-
#importmap ⇒ Object
Returns the value of attribute importmap.
-
#locales ⇒ Object
Returns the value of attribute locales.
-
#mailer_defaults ⇒ Object
Returns the value of attribute mailer_defaults.
-
#party_pooper ⇒ Object
Returns the value of attribute party_pooper.
-
#queues ⇒ Object
Returns the value of attribute queues.
-
#resource_pages_limit_value ⇒ Object
Returns the value of attribute resource_pages_limit_value.
- #tailwind_content ⇒ Object
-
#tailwind_plugins ⇒ Object
Returns the value of attribute tailwind_plugins.
-
#thumbnail_image_size ⇒ Object
Returns the value of attribute thumbnail_image_size.
-
#transliterations ⇒ Object
Returns the value of attribute transliterations.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_key ⇒ Object
Returns the value of attribute api_key.
22 23 24 |
# File 'lib/spina.rb', line 22 def api_key @api_key end |
#api_path ⇒ Object
Returns the value of attribute api_path.
22 23 24 |
# File 'lib/spina.rb', line 22 def api_path @api_path end |
#authentication ⇒ Object
Returns the value of attribute authentication.
22 23 24 |
# File 'lib/spina.rb', line 22 def authentication @authentication end |
#backend_path ⇒ Object
Returns the value of attribute backend_path.
22 23 24 |
# File 'lib/spina.rb', line 22 def backend_path @backend_path end |
#backend_title ⇒ Object
Returns the value of attribute backend_title.
22 23 24 |
# File 'lib/spina.rb', line 22 def backend_title @backend_title end |
#disable_current_account ⇒ Object
Returns the value of attribute disable_current_account.
22 23 24 |
# File 'lib/spina.rb', line 22 def disable_current_account @disable_current_account end |
#disable_decorator_load ⇒ Object
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_routes ⇒ Object
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_size ⇒ Object
Returns the value of attribute embedded_image_size.
22 23 24 |
# File 'lib/spina.rb', line 22 def @embedded_image_size end |
#frontend_parent_controller ⇒ Object
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 |
#importmap ⇒ Object
Returns the value of attribute importmap.
22 23 24 |
# File 'lib/spina.rb', line 22 def importmap @importmap end |
#locales ⇒ Object
Returns the value of attribute locales.
22 23 24 |
# File 'lib/spina.rb', line 22 def locales @locales end |
#mailer_defaults ⇒ Object
Returns the value of attribute mailer_defaults.
22 23 24 |
# File 'lib/spina.rb', line 22 def mailer_defaults @mailer_defaults end |
#party_pooper ⇒ Object
Returns the value of attribute party_pooper.
22 23 24 |
# File 'lib/spina.rb', line 22 def party_pooper @party_pooper end |
#queues ⇒ Object
Returns the value of attribute queues.
22 23 24 |
# File 'lib/spina.rb', line 22 def queues @queues end |
#resource_pages_limit_value ⇒ Object
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_content ⇒ Object
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_plugins ⇒ Object
Returns the value of attribute tailwind_plugins.
22 23 24 |
# File 'lib/spina.rb', line 22 def tailwind_plugins @tailwind_plugins end |
#thumbnail_image_size ⇒ Object
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 |
#transliterations ⇒ Object
Returns the value of attribute transliterations.
22 23 24 |
# File 'lib/spina.rb', line 22 def transliterations @transliterations end |