method

env=

v7.2.3 - Show latest stable - Class: Rails
env=(environment)
public

Sets the Rails environment.

Rails.env = "staging" # => "staging"