zeus.ugent.be/lib/helpers/environment.rb

10 lines
127 B
Ruby
Raw Permalink Normal View History

module EnvironmentHelper
def production?
2016-11-21 14:17:29 +01:00
ENV['NANOC_ENV'] == 'prod'
end
def development?
!production?
end
end