Module: UcbRails::ApplicationHelper
- Defined in:
- lib/generators/ucb_rails/templates/app/helpers/ucb_rails/application_helper.rb
Instance Method Summary collapse
- #app_name ⇒ Object
-
#app_name_with_env ⇒ Object
TODO: resolve w/handing of brand() in bootstrap-view-helpers.
Instance Method Details
#app_name ⇒ Object
3 4 5 |
# File 'lib/generators/ucb_rails/templates/app/helpers/ucb_rails/application_helper.rb', line 3 def app_name "Untitled App" end |
#app_name_with_env ⇒ Object
TODO: resolve w/handing of brand() in bootstrap-view-helpers
8 9 10 |
# File 'lib/generators/ucb_rails/templates/app/helpers/ucb_rails/application_helper.rb', line 8 def app_name_with_env RailsEnvironment.production? ? app_name : "#{app_name} - #{Rails.env.titleize}" end |