Module: Switchman::ActiveRecord::CollectionProxy

Defined in:
lib/switchman/active_record/association.rb

Instance Method Summary collapse

Instance Method Details

#shard(*args) ⇒ Object



199
200
201
202
203
204
205
# File 'lib/switchman/active_record/association.rb', line 199

def shard(*args)
  if ::Rails.version < '4'
    scoped.shard(*args)
  else
    scope.shard(*args)
  end
end