Sha256: 0c3199356d850c931be85008c6f445ddfd607e0d728a3b9506814d776d5ac5f9

Contents?: true

Size: 515 Bytes

Versions: 8

Compression:

Stored size: 515 Bytes

Contents

module Recommendable
  module Helpers
    module Queriers
      class << self
        def active_record(klass, ids)
          klass.where(:id => ids)
        end

        def data_mapper(klass, ids)
          klass.all(:id => ids)
        end

        def mongoid(klass, ids)
          klass.where(:id.in => ids)
        end

        def mongo_mapper(klass, ids)
          klass.where(:id => ids)
        end

        def sequel(klass, ids)
          klass.where(:id => ids)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
recommendable-2.2.0 lib/recommendable/helpers/queriers.rb
recommendable-2.1.4 lib/recommendable/helpers/queriers.rb
recommendable-2.1.3 lib/recommendable/helpers/queriers.rb
recommendable-2.1.2 lib/recommendable/helpers/queriers.rb
recommendable-2.1.1 lib/recommendable/helpers/queriers.rb
recommendable-2.1.0.2 lib/recommendable/helpers/queriers.rb
recommendable-2.1.0.1 lib/recommendable/helpers/queriers.rb
recommendable-2.0.4.20130313 lib/recommendable/helpers/queriers.rb