Sha256: 5b915d6f8dd1c2587f03412cc2bee84187f1e26d855eaf30709811ac71d530fe

Contents?: true

Size: 370 Bytes

Versions: 2

Compression:

Stored size: 370 Bytes

Contents

class Symbol
  (DataMapper::Query::Conditions::Comparison.slugs | %i(not asc desc)).each do |sym|
    class_eval <<-RUBY, __FILE__, __LINE__ + 1
      def #{sym}
        #{"raise \"explicit use of '#{sym}' operator is deprecated (#{caller.first})\"" if %i(eql in).include?(sym)}
        DataMapper::Query::Operator.new(self, #{sym.inspect})
      end
    RUBY
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sbf-dm-core-1.3.0 lib/dm-core/core_ext/symbol.rb
sbf-dm-core-1.3.0.beta lib/dm-core/core_ext/symbol.rb