class method self.protected_environments=

Ruby on Rails edge

Since edge

Signature

self.protected_environments=(environments)

Sets an array of names of environments where destructive actions should be prohibited.

Parameters

environments req
Source
# File activerecord/lib/active_record.rb, line 203
  def self.protected_environments=(environments)
    @protected_environments = environments.map(&:to_s)
  end

Defined in activerecord/lib/active_record.rb line 203 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close