Module: Switchman::ActiveRecord::CollectionProxy
- Defined in:
- lib/switchman/active_record/association.rb
Instance Method Summary collapse
Instance Method Details
#shard(*args) ⇒ Object
189 190 191 192 193 194 195 |
# File 'lib/switchman/active_record/association.rb', line 189 def shard(*args) if ::Rails.version < '4' scoped.shard(*args) else scope.shard(*args) end end |