Sha256: a59c7fa87ac787acb86a14752820346f49927335dc9cc9372649fe1bacce80c9

Contents?: true

Size: 294 Bytes

Versions: 29

Compression:

Stored size: 294 Bytes

Contents

module MongoModel
  module Types
    class Object
      def cast(value)
        value
      end
      
      def boolean(value)
        !value.blank?
      end
      
      def to_mongo(value)
        value
      end
      
      def from_mongo(value)
        value
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
mongomodel-0.3.1 lib/mongomodel/support/types/object.rb
mongomodel-0.3.0 lib/mongomodel/support/types/object.rb
mongomodel-0.2.20 lib/mongomodel/support/types/object.rb
mongomodel-0.2.19 lib/mongomodel/support/types/object.rb
mongomodel-0.2.18 lib/mongomodel/support/types/object.rb
mongomodel-0.2.17 lib/mongomodel/support/types/object.rb
mongomodel-0.2.16 lib/mongomodel/support/types/object.rb
mongomodel-0.2.15 lib/mongomodel/support/types/object.rb
mongomodel-0.2.14 lib/mongomodel/support/types/object.rb
mongomodel-0.2.13 lib/mongomodel/support/types/object.rb
mongomodel-0.2.12 lib/mongomodel/support/types/object.rb
mongomodel-0.2.11 lib/mongomodel/support/types/object.rb
mongomodel-0.2.10 lib/mongomodel/support/types/object.rb
mongomodel-0.2.9 lib/mongomodel/support/types/object.rb
mongomodel-0.2.8 lib/mongomodel/support/types/object.rb
mongomodel-0.2.7 lib/mongomodel/support/types/object.rb
mongomodel-0.2.6 lib/mongomodel/support/types/object.rb
mongomodel-0.2.5 lib/mongomodel/support/types/object.rb
mongomodel-0.2.4 lib/mongomodel/support/types/object.rb
mongomodel-0.2.3 lib/mongomodel/support/types/object.rb