module Rails::Sharding::ActiveRecordExtensions::CaseFixer

Fixes case-when behavior when ScopeProxy is passed to case (otherwise classes don't match)

Public Instance Methods

===(other) click to toggle source
Calls superclass method
# File lib/rails/sharding/active_record_extensions.rb, line 84
def ===(other)
  other = other.original_scope while other === ScopeProxy
  super
end