diff options
author | Phil Hughes <me@iamphill.com> | 2017-06-21 16:45:05 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-06-21 16:45:23 +0300 |
commit | 79a842c53d77e9b5b95c538372ac263c28864659 (patch) | |
tree | 0b13aab8a71e277527e4782678bdd75806236d90 /app/helpers/application_helper.rb | |
parent | 1c2547d2a96fc29e7b009e95d69d17c637d11a0a (diff) |
fixed scss-lint job
only display the toggle setting in development env for now
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 46be72ad81c..dc7ff78f3df 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -301,6 +301,10 @@ module ApplicationHelper end end + def can_toggle_new_nav? + Rails.env.development? + end + def show_new_nav? cookies["new_nav"] == "true" end |