Sha256: 12e0bd43b2f1c29562757f713bc56ec921aca7e62fae1220e00c08d8ed2b6bcc
Contents?: true
Size: 387 Bytes
Versions: 11
Compression:
Stored size: 387 Bytes
Contents
class Symbol (DataMapper::Query::Conditions::Comparison.slugs | [ :not, :asc, :desc ]).each do |sym| class_eval <<-RUBY, __FILE__, __LINE__ + 1 def #{sym} #{"warn \"explicit use of '#{sym}' operator is deprecated (#{caller[0]})\"" if sym == :eql || sym == :in} DataMapper::Query::Operator.new(self, #{sym.inspect}) end RUBY end end # class Symbol
Version data entries
11 entries across 11 versions & 2 rubygems