Class: ActiveRecordShards::Deprecation
- Inherits:
-
ActiveSupport::Deprecation
- Object
- ActiveSupport::Deprecation
- ActiveRecordShards::Deprecation
- Defined in:
- lib/active_record_shards/deprecation.rb
Instance Method Summary collapse
-
#behavior ⇒ Object
This allows us to define separate deprecation behavior for ActiveRecordShards, but defaults to the same behavior globally configured with ActiveSupport.
Instance Method Details
#behavior ⇒ Object
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.
8 9 10 |
# File 'lib/active_record_shards/deprecation.rb', line 8 def behavior @behavior ||= ActiveSupport::Deprecation.behavior end |