Class: RailsBase::Configuration::App

Inherits:
Base
  • Object
show all
Defined in:
lib/rails_base/configuration/app.rb

Constant Summary collapse

DEFAULT_VALUES =
{
  app_name: {
    type: :string_proc,
    default: ->(*) { RailsBase.default_app_name },
    description: 'Name of the application when authenticated user is present. Name in the tab of the browser. Allows for dynamic tab names'
  },
  base_url: {
    type: :string,
    default: ENV.fetch('BASE_URL', 'http://localhost'),
    description: 'Base url. Used for things like SSO.'
  },
  base_port: {
    type: :string_nil,
    default: ENV.fetch('BASE_URL_PORT', nil),
    description: 'Base port. Used for things like SSO.'
  },
  web_name_logged_in: {
    type: :string_proc,
    default: ->(*) { RailsBase.config.app.app_name },
    description: 'Name of the application when authenticated user is present. Name in the tab of the browser. Allows for dynamic tab names'
  },
  web_name_logged_out: {
    type: :string_proc,
    default: ->(*) { RailsBase.config.app.app_name },
    description: 'Name of the application when no authenticated user. Name in the tab of the browser. Allows for dynamic tab names'
  },
  web_title_logged_in: {
    type: :string_proc,
    default: ->(user) { RailsBase.config.app.app_name },
    description: 'Title in nav for the web when logged in. String or proc accepted. When proc, current user will be passed in.'
  },
  web_title_logged_out: {
    type: :string_proc,
    default: ->(*) { RailsBase.config.app.app_name },
    description: 'Title in nav for the web when logged in. String or proc accepted. When proc, current user will be passed in.'
  },
  communication_name: {
    type: :string_proc,
    default: ->(*) { RailsBase.config.app.app_name },
    description: 'Name used when communicating with users.'
  },
  favicon_path: {
    type: :string_nil,
    default: 'rails_base/favicon.ico',
    description: 'Favicon path'
  },
}

Constants inherited from Base

Base::ALLOWED_TYPES

Method Summary

Methods inherited from Base

_allow_write_block?, _unset_allow_write!, #assign_default_values!, #dig, #initialize, #override_methods!, #validate!

Constructor Details

This class inherits a constructor from RailsBase::Configuration::Base