module Casein::ConfigHelper

Public Instance Methods

casein_config_auth_javascript_includes() click to toggle source

A list of JavaScript files to includein the authentication layout. Do not remove the core casein/casein, but you can change the load order, if required.

# File lib/generators/casein/install/templates/app/helpers/casein/config_helper.rb, line 51
def casein_config_auth_javascript_includes
  %w[casein/casein casein/auth_custom]
end
casein_config_auth_stylesheet_includes() click to toggle source

A list of stylesheets to include in the authentication layout. Do not remove the core casein/login, but you can change the load order, if required.

# File lib/generators/casein/install/templates/app/helpers/casein/config_helper.rb, line 46
def casein_config_auth_stylesheet_includes
  %w[casein/login casein/auth_custom]
end
casein_config_dashboard_url() click to toggle source

The initial page the user is shown after they sign in or click the logo. Probably this should be set to the first tab. Do not point this at casein/index!

# File lib/generators/casein/install/templates/app/helpers/casein/config_helper.rb, line 31
def casein_config_dashboard_url
  url_for controller: :casein, action: :blank
end
casein_config_email_from_address() click to toggle source

The sender address used for email notifications

# File lib/generators/casein/install/templates/app/helpers/casein/config_helper.rb, line 25
def casein_config_email_from_address
  'donotreply@caseincms.com'
end
casein_config_hostname() click to toggle source

The server hostname where Casein will run

# File lib/generators/casein/install/templates/app/helpers/casein/config_helper.rb, line 16
def casein_config_hostname
  if Rails.env.production?
    'http://www.caseincms.com'
  else
    'http://0.0.0.0:3000'
  end
end
casein_config_javascript_includes() click to toggle source

A list of JavaScript files to include. Do not remove the core casein/casein, but you can change the load order, if required.

# File lib/generators/casein/install/templates/app/helpers/casein/config_helper.rb, line 41
def casein_config_javascript_includes
  %w[casein/casein casein/custom]
end
casein_config_stylesheet_includes() click to toggle source

A list of stylesheets to include. Do not remove the core casein/casein, but you can change the load order, if required.

# File lib/generators/casein/install/templates/app/helpers/casein/config_helper.rb, line 36
def casein_config_stylesheet_includes
  %w[casein/casein casein/custom]
end
casein_config_website_name() click to toggle source

Name of website or client — used throughout Casein.

# File lib/generators/casein/install/templates/app/helpers/casein/config_helper.rb, line 6
def casein_config_website_name
  'Casein'
end