Merge branch 'master' into epp-refactor

This commit is contained in:
Martin Lensment 2015-01-16 17:43:44 +02:00
commit 594b0a5cd7
20 changed files with 510 additions and 121 deletions

View file

@ -1,2 +1,11 @@
module ApplicationHelper
def unstable_env
return nil if Rails.env.production?
Rails.env
end
def env_style
return '' if unstable_env.nil?
"background-image: url(#{image_path(unstable_env.to_s + '.png')});"
end
end