Sha256: 5415d59dba9ec8c0523d4acf3b572640480bf9494db99ec6981a9cc3767c7604
Contents?: true
Size: 471 Bytes
Versions: 1
Compression:
Stored size: 471 Bytes
Contents
require 'everywhere/util' module ActiveRecord module QueryMethods include Everywhere::Util def build_where_with_not(opts, other = []) case opts when :not build_where_without_not(*other).map {|r| negate r} when :like build_where_without_not(*other).map {|r| Arel::Nodes::Matches.new r.left, r.right} else build_where_without_not(opts, other) end end alias_method_chain :build_where, :not end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
everywhere-0.1.0 | lib/everywhere/symbol.rb |