Sha256: 13413451dbfe74f306976ec2b800c4c95062db7c5bb2b3365fdba47e1527a739

Contents?: true

Size: 979 Bytes

Versions: 1

Compression:

Stored size: 979 Bytes

Contents

# Mongoid::BigDecimalInteger [![Build Status](https://secure.travis-ci.org/gcirne/mongoid_big_decimal_integer.png?branch=master)](https://travis-ci.org/gcirne/mongoid_big_decimal_integer)

Mongoid type which stores BigDecimals as Integers.

The default BigDecimal type provided in Mongoid stores BigDecimals as Strings. Because of this, stuff like sorts and range queries don't work. This type multiplies the value by a (configurable) power of 10 and stores the resulting Integer.

## Installation

Add this line to your application's Gemfile:

    gem 'mongoid_big_decimal_integer'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install mongoid_big_decimal_integer

## Usage

TODO: Write usage instructions here

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid_big_decimal_integer-0.1.1 README.md