Module: Switchman::ActiveRecord::CollectionProxy

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

Instance Method Summary collapse

Instance Method Details

#shard(*args) ⇒ Object



203
204
205
206
207
208
209
# File 'lib/switchman/active_record/association.rb', line 203

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