module Casein::ConfigHelper
Public Instance Methods
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
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
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
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
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
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
Filename of logo image. Ideally, it should be a transparent PNG around 140x30px
# File lib/generators/casein/install/templates/app/helpers/casein/config_helper.rb, line 11 def casein_config_logo 'casein/casein.png' end
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
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