class ActiveRecordShards::Deprecation
Public Instance Methods
behavior()
click to toggle source
This allows us to define separate deprecation behavior for ActiveRecordShards
, but defaults to the same behavior globally configured with ActiveSupport.
For example, this allows us to silence our own deprecation warnings in test while still being able to fail tests for upstream deprecation warnings.
# File lib/active_record_shards/deprecation.rb, line 8 def behavior @behavior ||= ActiveSupport::Deprecation.behavior end