Sha256: 85a3382a383db2a5493415ff23ad0f2e91cf0817252665b21eae00f5e528ce04

Contents?: true

Size: 269 Bytes

Versions: 27

Compression:

Stored size: 269 Bytes

Contents

# encoding: utf-8
module Mongoid #:nodoc:
  module Extensions #:nodoc:
    module TrueClass #:nodoc:
      module Equality #:nodoc:
        def is_a?(other)
          return true if other.name == "Boolean"
          super(other)
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 4 rubygems

Version Path
mongoid-braxton-2.0.2 lib/mongoid/extensions/true_class/equality.rb
mongoid-2.0.2 lib/mongoid/extensions/true_class/equality.rb
mongoid-2.0.1 lib/mongoid/extensions/true_class/equality.rb
mongoid-2.0.0 lib/mongoid/extensions/true_class/equality.rb
mongoid-2.0.0.rc.8 lib/mongoid/extensions/true_class/equality.rb
mongoid-2.0.0.rc.7 lib/mongoid/extensions/true_class/equality.rb
stonegao-mongoid-2.0.0.rc.6 lib/mongoid/extensions/true_class/equality.rb
mongoid-2.0.0.rc.6 lib/mongoid/extensions/true_class/equality.rb
mongoid-2.0.0.rc.5 lib/mongoid/extensions/true_class/equality.rb
mongoid-2.0.0.rc.4 lib/mongoid/extensions/true_class/equality.rb
mongoid-2.0.0.rc.3 lib/mongoid/extensions/true_class/equality.rb
mongoid-2.0.0.rc.2 lib/mongoid/extensions/true_class/equality.rb
mongoid-2.0.0.rc.1 lib/mongoid/extensions/true_class/equality.rb
mongoid-2.0.0.beta.20 lib/mongoid/extensions/true_class/equality.rb
mongoid-2.0.0.beta.19 lib/mongoid/extensions/true_class/equality.rb
mongoid-2.0.0.beta.18 lib/mongoid/extensions/true_class/equality.rb
mongoid-2.0.0.beta.17 lib/mongoid/extensions/true_class/equality.rb
mongoid-2.0.0.beta.16 lib/mongoid/extensions/true_class/equality.rb
mongoid-2.0.0.beta.15 lib/mongoid/extensions/true_class/equality.rb
mongoid-2.0.0.beta.14 lib/mongoid/extensions/true_class/equality.rb