lib/kapost/env.rb
# Exception raised when key is missing from ENV, and no default is given
Exception raised when key is missing from ENV, and no default is given
Exception raised when key is missing from ENV and no default is given
def app_env
      @app_env ||= if defined?(Rails)
                     Rails.env
                   else
                     @env["RAILS_ENV"] || @env["RACK_ENV"] || "development"
                   end
    end
def app_env @app_env ||= if defined? ( Rails ) Rails . env else @env [ "RAILS_ENV" ] || @env [ "RACK_ENV" ] || "development" end end
Exception raised when key is missing from ENV, and no default is given
Exception raised when key is missing from ENV and no default is given