Sha256: e82574015ca9d890f10f800c97d60e5c74b557f2b6aaba8278104c287dde2cbe

Contents?: true

Size: 260 Bytes

Versions: 8

Compression:

Stored size: 260 Bytes

Contents

module Mongoid #:nodoc:
  module Extensions #:nodoc:
    module Boolean #:nodoc:
      module Conversions #:nodoc:
        def set(value)
          value.to_s == "true"
        end
        def get(value)
          value
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mongoid-0.6.10 lib/mongoid/extensions/boolean/conversions.rb
mongoid-0.6.9 lib/mongoid/extensions/boolean/conversions.rb
mongoid-0.6.8 lib/mongoid/extensions/boolean/conversions.rb
mongoid-0.6.7 lib/mongoid/extensions/boolean/conversions.rb
mongoid-0.6.6 lib/mongoid/extensions/boolean/conversions.rb
mongoid-0.6.5 lib/mongoid/extensions/boolean/conversions.rb
mongoid-0.6.4 lib/mongoid/extensions/boolean/conversions.rb
mongoid-0.6.3 lib/mongoid/extensions/boolean/conversions.rb