Class: ActiveRecordShards::Deprecation

Inherits:
ActiveSupport::Deprecation
  • Object
show all
Defined in:
lib/active_record_shards/deprecation.rb

Instance Method Summary collapse

Instance Method Details

#behaviorObject

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