mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add a "silence" behavior to completely turn off deprecation warnings.
This commit is contained in:
parent
9fc9e89477
commit
76cd1ca08d
1 changed files with 3 additions and 2 deletions
|
@ -41,8 +41,9 @@ module ActiveSupport
|
|||
},
|
||||
:notify => Proc.new { |message, callstack|
|
||||
ActiveSupport::Notifications.instrument("deprecation.rails",
|
||||
:message => message, :callstack => callstack)
|
||||
}
|
||||
:message => message, :callstack => callstack)
|
||||
},
|
||||
:silence => Proc.new { |message, callstack| }
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue