module Rails
def env
Rails.env.production? # => false
Rails.env.development? # => true
Rails.env # => "development"
Returns the current \Rails environment.
def env @_env ||= ActiveSupport::EnvironmentInquirer.new(ENV["RAILS_ENV"].presence || ENV["RACK_ENV"].presence || "development") end