Sha256: a5755b1e512a26e6be7974d23b16c5d44a56e7702ac72de449e21818347365f5

Contents?: true

Size: 265 Bytes

Versions: 13

Compression:

Stored size: 265 Bytes

Contents

module Mongoid #:nodoc:
  module Extensions #:nodoc:
    module Time #:nodoc:
      module Conversions #:nodoc:
        def set(value)
          ::Time.parse(value.to_s).utc
        end
        def get(value)
          value
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mongoid-0.7.2 lib/mongoid/extensions/time/conversions.rb
mongoid-0.7.1 lib/mongoid/extensions/time/conversions.rb
mongoid-0.7.0 lib/mongoid/extensions/time/conversions.rb
mongoid-0.6.10 lib/mongoid/extensions/time/conversions.rb
mongoid-0.6.9 lib/mongoid/extensions/time/conversions.rb
mongoid-0.6.8 lib/mongoid/extensions/time/conversions.rb
mongoid-0.6.7 lib/mongoid/extensions/time/conversions.rb
mongoid-0.6.6 lib/mongoid/extensions/time/conversions.rb
mongoid-0.6.5 lib/mongoid/extensions/time/conversions.rb
mongoid-0.6.4 lib/mongoid/extensions/time/conversions.rb
mongoid-0.6.3 lib/mongoid/extensions/time/conversions.rb
mongoid-0.6.2 lib/mongoid/extensions/time/conversions.rb
mongoid-0.6.1 lib/mongoid/extensions/time/conversions.rb