Class: Maglev::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/maglev/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#admin_passwordObject

Returns the value of attribute admin_password

Returns:

  • (Object)

    the current value of admin_password



6
7
8
# File 'lib/maglev/config.rb', line 6

def admin_password
  @admin_password
end

#admin_usernameObject

Returns the value of attribute admin_username

Returns:

  • (Object)

    the current value of admin_username



6
7
8
# File 'lib/maglev/config.rb', line 6

def admin_username
  @admin_username
end

#asset_hostObject

Returns the value of attribute asset_host

Returns:

  • (Object)

    the current value of asset_host



6
7
8
# File 'lib/maglev/config.rb', line 6

def asset_host
  @asset_host
end

#back_actionObject

Returns the value of attribute back_action

Returns:

  • (Object)

    the current value of back_action



6
7
8
# File 'lib/maglev/config.rb', line 6

def back_action
  @back_action
end

#collectionsObject

Returns the value of attribute collections

Returns:

  • (Object)

    the current value of collections



6
7
8
# File 'lib/maglev/config.rb', line 6

def collections
  @collections
end

#default_site_localesObject

Returns the value of attribute default_site_locales

Returns:

  • (Object)

    the current value of default_site_locales



6
7
8
# File 'lib/maglev/config.rb', line 6

def default_site_locales
  @default_site_locales
end

#faviconObject

Returns the value of attribute favicon

Returns:

  • (Object)

    the current value of favicon



6
7
8
# File 'lib/maglev/config.rb', line 6

def favicon
  @favicon
end

#is_authenticatedObject

Returns the value of attribute is_authenticated

Returns:

  • (Object)

    the current value of is_authenticated



6
7
8
# File 'lib/maglev/config.rb', line 6

def is_authenticated
  @is_authenticated
end

#logoObject

Returns the value of attribute logo

Returns:

  • (Object)

    the current value of logo



6
7
8
# File 'lib/maglev/config.rb', line 6

def 
  @logo
end

#paginationObject

Returns the value of attribute pagination

Returns:

  • (Object)

    the current value of pagination



6
7
8
# File 'lib/maglev/config.rb', line 6

def pagination
  @pagination
end

#parent_controllerObject

Returns the value of attribute parent_controller

Returns:

  • (Object)

    the current value of parent_controller



6
7
8
# File 'lib/maglev/config.rb', line 6

def parent_controller
  @parent_controller
end

#preview_hostObject

Returns the value of attribute preview_host

Returns:

  • (Object)

    the current value of preview_host



6
7
8
# File 'lib/maglev/config.rb', line 6

def preview_host
  @preview_host
end

#primary_colorObject

Returns the value of attribute primary_color

Returns:

  • (Object)

    the current value of primary_color



6
7
8
# File 'lib/maglev/config.rb', line 6

def primary_color
  @primary_color
end

#reserved_pathsObject

Returns the value of attribute reserved_paths

Returns:

  • (Object)

    the current value of reserved_paths



6
7
8
# File 'lib/maglev/config.rb', line 6

def reserved_paths
  @reserved_paths
end

#servicesObject

Returns the value of attribute services

Returns:

  • (Object)

    the current value of services



6
7
8
# File 'lib/maglev/config.rb', line 6

def services
  @services
end

#site_publishableObject

Returns the value of attribute site_publishable

Returns:

  • (Object)

    the current value of site_publishable



6
7
8
# File 'lib/maglev/config.rb', line 6

def site_publishable
  @site_publishable
end

#static_pagesObject

Returns the value of attribute static_pages

Returns:

  • (Object)

    the current value of static_pages



6
7
8
# File 'lib/maglev/config.rb', line 6

def static_pages
  @static_pages
end

#tailwindcss_foldersObject

Returns the value of attribute tailwindcss_folders

Returns:

  • (Object)

    the current value of tailwindcss_folders



6
7
8
# File 'lib/maglev/config.rb', line 6

def tailwindcss_folders
  @tailwindcss_folders
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



6
7
8
# File 'lib/maglev/config.rb', line 6

def title
  @title
end

#ui_localeObject

Returns the value of attribute ui_locale

Returns:

  • (Object)

    the current value of ui_locale



6
7
8
# File 'lib/maglev/config.rb', line 6

def ui_locale
  @ui_locale
end

#uploaderObject

Returns the value of attribute uploader

Returns:

  • (Object)

    the current value of uploader



6
7
8
# File 'lib/maglev/config.rb', line 6

def uploader
  @uploader
end

Instance Method Details

#pagination?(key) ⇒ Boolean

Returns:

  • (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