Class: Maglev::Config
- Inherits:
-
Struct
- Object
- Struct
- Maglev::Config
- Defined in:
- lib/maglev/config.rb
Instance Attribute Summary collapse
-
#admin_password ⇒ Object
Returns the value of attribute admin_password.
-
#admin_username ⇒ Object
Returns the value of attribute admin_username.
-
#asset_host ⇒ Object
Returns the value of attribute asset_host.
-
#back_action ⇒ Object
Returns the value of attribute back_action.
-
#collections ⇒ Object
Returns the value of attribute collections.
-
#default_site_locales ⇒ Object
Returns the value of attribute default_site_locales.
-
#favicon ⇒ Object
Returns the value of attribute favicon.
-
#is_authenticated ⇒ Object
Returns the value of attribute is_authenticated.
-
#logo ⇒ Object
Returns the value of attribute logo.
-
#pagination ⇒ Object
Returns the value of attribute pagination.
-
#parent_controller ⇒ Object
Returns the value of attribute parent_controller.
-
#preview_host ⇒ Object
Returns the value of attribute preview_host.
-
#primary_color ⇒ Object
Returns the value of attribute primary_color.
-
#reserved_paths ⇒ Object
Returns the value of attribute reserved_paths.
-
#services ⇒ Object
Returns the value of attribute services.
-
#site_publishable ⇒ Object
Returns the value of attribute site_publishable.
-
#static_pages ⇒ Object
Returns the value of attribute static_pages.
-
#tailwindcss_folders ⇒ Object
Returns the value of attribute tailwindcss_folders.
-
#title ⇒ Object
Returns the value of attribute title.
-
#ui_locale ⇒ Object
Returns the value of attribute ui_locale.
-
#uploader ⇒ Object
Returns the value of attribute uploader.
Instance Method Summary collapse
Instance Attribute Details
#admin_password ⇒ Object
Returns the value of attribute admin_password
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def admin_password @admin_password end |
#admin_username ⇒ Object
Returns the value of attribute admin_username
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def admin_username @admin_username end |
#asset_host ⇒ Object
Returns the value of attribute asset_host
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def asset_host @asset_host end |
#back_action ⇒ Object
Returns the value of attribute back_action
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def back_action @back_action end |
#collections ⇒ Object
Returns the value of attribute collections
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def collections @collections end |
#default_site_locales ⇒ Object
Returns the value of attribute default_site_locales
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def default_site_locales @default_site_locales end |
#favicon ⇒ Object
Returns the value of attribute favicon
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def favicon @favicon end |
#is_authenticated ⇒ Object
Returns the value of attribute is_authenticated
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def is_authenticated @is_authenticated end |
#logo ⇒ Object
Returns the value of attribute logo
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def logo @logo end |
#pagination ⇒ Object
Returns the value of attribute pagination
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def pagination @pagination end |
#parent_controller ⇒ Object
Returns the value of attribute parent_controller
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def parent_controller @parent_controller end |
#preview_host ⇒ Object
Returns the value of attribute preview_host
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def preview_host @preview_host end |
#primary_color ⇒ Object
Returns the value of attribute primary_color
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def primary_color @primary_color end |
#reserved_paths ⇒ Object
Returns the value of attribute reserved_paths
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def reserved_paths @reserved_paths end |
#services ⇒ Object
Returns the value of attribute services
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def services @services end |
#site_publishable ⇒ Object
Returns the value of attribute site_publishable
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def site_publishable @site_publishable end |
#static_pages ⇒ Object
Returns the value of attribute static_pages
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def static_pages @static_pages end |
#tailwindcss_folders ⇒ Object
Returns the value of attribute tailwindcss_folders
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def tailwindcss_folders @tailwindcss_folders end |
#title ⇒ Object
Returns the value of attribute title
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def title @title end |
#ui_locale ⇒ Object
Returns the value of attribute ui_locale
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def ui_locale @ui_locale end |
#uploader ⇒ Object
Returns the value of attribute uploader
6 7 8 |
# File 'lib/maglev/config.rb', line 6 def uploader @uploader end |
Instance Method Details
#pagination?(key) ⇒ Boolean
21 22 23 |
# File 'lib/maglev/config.rb', line 21 def pagination?(key) self[:pagination][key].present? && self[:pagination][key] != -1 end |
#per_page(key) ⇒ Object
25 26 27 |
# File 'lib/maglev/config.rb', line 25 def per_page(key) self[:pagination][key] end |