module Rails

def env

Experimental RBS support (using type sampling data from the type_fusion project).

def env: () -> ActiveSupport::EnvironmentInquirer

This signature was generated using 7 samples from 1 application.

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