Module: Switchman::ActiveRecord::CollectionProxy

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

Instance Method Summary collapse

Instance Method Details

#shard(*args) ⇒ Object



166
167
168
169
170
171
172
# File 'lib/switchman/active_record/association.rb', line 166

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