Module: Switchman::ActiveRecord::CollectionProxy

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

Instance Method Summary collapse

Instance Method Details

#shard(*args) ⇒ Object



160
161
162
163
164
165
166
# File 'lib/switchman/active_record/association.rb', line 160

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