Sha256: 8af9e9b47b6ca9607b7bbfb487509b343d786164e7674a413e3c9c4c4638c2ea

Contents?: true

Size: 391 Bytes

Versions: 4

Compression:

Stored size: 391 Bytes

Contents

require "mobility/backends/sequel/query_methods"

module Mobility
  module Backends
    class Sequel::Serialized::QueryMethods < Sequel::QueryMethods
      include Serialized

      def initialize(attributes, _)
        super
        q = self

        define_method :where do |*cond, &block|
          q.check_opts(cond.first) || super(*cond, &block)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mobility-0.4.3 lib/mobility/backends/sequel/serialized/query_methods.rb
mobility-0.4.2 lib/mobility/backends/sequel/serialized/query_methods.rb
mobility-0.4.1 lib/mobility/backends/sequel/serialized/query_methods.rb
mobility-0.4.0 lib/mobility/backends/sequel/serialized/query_methods.rb