Sha256: c48f6d53398f10ba63d0d6b49ebc650f69c1cf83f3e822786aaf5a5461299ba8

Contents?: true

Size: 200 Bytes

Versions: 11

Compression:

Stored size: 200 Bytes

Contents

module EdgeRider
  module ToIdQuery

    def to_id_query
      ids = collect_ids
      EdgeRider::Util.exclusive_query(self, :id => ids)
    end

    ActiveRecord::Base.send(:extend, self)

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
edge_rider-0.3.3 lib/edge_rider/to_id_query.rb
edge_rider-0.3.2 lib/edge_rider/to_id_query.rb
edge_rider-0.3.1 lib/edge_rider/to_id_query.rb
edge_rider-0.3.0 lib/edge_rider/to_id_query.rb
edge_rider-0.2.5 lib/edge_rider/to_id_query.rb
edge_rider-0.2.4 lib/edge_rider/to_id_query.rb
edge_rider-0.2.3 lib/edge_rider/to_id_query.rb
edge_rider-0.2.2 lib/edge_rider/to_id_query.rb
edge_rider-0.2.1 lib/edge_rider/to_id_query.rb
edge_rider-0.2.0 lib/edge_rider/to_id_query.rb
edge_rider-0.1.1 lib/edge_rider/to_id_query.rb