Add code block to Rails.env method.
e.g.
  Rails.env :staging, :development do
    # do something for these environments
  end
or
  Rails.env.development?