about summary refs log tree commit diff
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorAshley <expenses@airmail.cc>2017-04-28 01:17:55 +1200
committerEugen Rochko <eugen@zeonfederated.com>2017-04-27 15:17:55 +0200
commit1736badf28eae2ba42e42f9fef2e151e35d5397a (patch)
treec5cb11b4a149c4eaa14141423699a924306974c8 /app/helpers/application_helper.rb
parent88725d6ce85115ea3b0652007db5d40a1c069be3 (diff)
Added '(dev)' to the title in development mode (#2524)
* Added different title for dev

* Changed indentation
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index d25b12998..14c7447c0 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -18,4 +18,8 @@ module ApplicationHelper
     env_suffix = Rails.env.production? ? '' : '-dev'
     asset_path "favicon#{env_suffix}.ico"
   end
+
+  def title
+    Rails.env.production? ? site_title : "#{site_title} (Dev)"
+  end
 end