Sha256: 834ddb4eec9eef770d1fc76caba10b532c9b50fb2efa8b666a7108ca9bf7025a
Contents?: true
Size: 403 Bytes
Versions: 8
Compression:
Stored size: 403 Bytes
Contents
# encoding: utf-8 require "bigdecimal" module Mongoid #:nodoc: module Extensions #:nodoc: module BigDecimal #:nodoc: module Conversions #:nodoc: # Get the string as a +BigDecimal+ def get(value) ::BigDecimal.new(value) end # Set the value in the hash as a string. def set(value) value.to_s end end end end end
Version data entries
8 entries across 8 versions & 2 rubygems