mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
11 lines
238 B
Ruby
11 lines
238 B
Ruby
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
|