Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Mar 26, 2011

  1. Daniel Morrison

    Removed cattr_accessor, rely on others to provide it.

  2. Daniel Morrison

    Updated for Ruby 1.9

Jul 22, 2009

  1. Zach Dennis

    Added the ability for :allow_nil to be set to false when declaring a …

    …money field, and it now properly defaults to -bash rather than nil
    authored July 22, 2009

Jul 21, 2009

  1. Brandon Keepers

    Remove old comment about use with Active Record

    authored July 20, 2009

Jan 22, 2009

  1. Zach Dennis

    added ability for String#to_money to work with no leading digits, ie:…

    … '.37'.to_money #=> #<Money @cents=37>
    authored January 21, 2009
  2. Zach Dennis

    Update rails #money method to properly handle constructing the money …

    …object when using a specific precision and building a new model
    authored January 21, 2009
  3. Brandon Keepers

    Update gemspec

    authored January 21, 2009
  4. Brandon Keepers

    Update the README

    authored January 21, 2009

Jan 21, 2009

  1. Brandon Keepers

    Avoid overriding methods so we don't have to re-impement composed_of'…

    …s functionality
    authored January 21, 2009
  2. Brandon Keepers

    Add the precision argument to Money#to_money for compatibility with o…

    …ther #to_money methods
    authored January 21, 2009
  3. Brandon Keepers

    Use an in-memory sqlite database for testing

    authored January 21, 2009
  4. Zach Dennis

    Updated rails money declaration to support a precision option. Added …

    …example against the cents option
    authored January 21, 2009

Dec 31, 2008

  1. Brandon Keepers

    Don't define cattr_* methods if they are already defined to prevent c…

    …onflicts with active support's implementation
    authored December 30, 2008

Nov 26, 2008

  1. Brandon Keepers

    simplify overridden attribute writer

    authored November 26, 2008
  2. Zach Dennis

    support setting a money field to nil with using blank values

    authored November 25, 2008 bkeepers committed November 26, 2008

Nov 25, 2008

  1. Brandon Keepers

    Added examples for positive cases

    authored November 25, 2008
  2. Brandon Keepers

    Override composed_of setter to ignore blank values

    authored November 25, 2008

Nov 20, 2008

  1. Brandon Keepers

    Added :allow_nil => true option back to composed_of call

    authored November 20, 2008
  2. Brandon Keepers

    Added info about rails compatability

    This version is compatible with Rails 2.2.  For compatibility with previous versions of Rails, check out the rails-2.1 branch.
    authored November 20, 2008
  3. Brandon Keepers

    Update README with informationa about using with Rails

    authored November 20, 2008
  4. Brandon Keepers

    Use a :conversion option for compatability with Rails >= 2.2

    authored November 20, 2008
  5. Zach Dennis

    Updated ActiveRecord::Acts::Money to not break dynamic finders when n…

    …ot supplied a currency.
    
    The failure was due to the mappings that were being passed into #composed_of. For each mapping, a database column is expected to be found by ActiveRecord when it tries to match on dynamic finders. This removes the idea of a default currency on the ActiveRecord side of things. Folks can use Money.default_currency= to change things globally. If they want to provide a custom currency they can always supply the database field and supply the :currency option.
    authored November 19, 2008 bkeepers committed November 20, 2008

Nov 19, 2008

  1. Brandon Keepers

    Merge in acts_as_money functionality from http://github.com/collectiv…

    …eidea/acts_as_money and pluginize.
    authored November 19, 2008
  2. Brandon Keepers

    ignore doc and coverage directories

    authored November 19, 2008
  3. Brandon Keepers

    Moving some files around

    authored November 19, 2008

Nov 13, 2008

  1. Brandon Keepers

    Added spec task and remove test task

    authored November 12, 2008
  2. Brandon Keepers

    update specs to use better example names

    authored November 12, 2008

Nov 12, 2008

  1. Removed: tests files

    authored November 12, 2008
  2. Changed: tests to specs, Renamed: VariableExchangeBank#reduce to exch…

    …ange
    authored November 12, 2008

Oct 18, 2008

  1. Brandon Keepers

    ignore commas when converting a string to money

    authored October 18, 2008

Oct 17, 2008

  1. Brandon Keepers

    doh, fix tests for change of #dollars to #to_f

    authored October 17, 2008
  2. Brandon Keepers

    rename #dollars to #to_f

    authored October 17, 2008

Oct 16, 2008

  1. Brandon Keepers

    Use set currency in #to_precision

    authored October 16, 2008
  2. Brandon Keepers

    added #dollars method to give amount as a float

    authored October 16, 2008
  3. Brandon Keepers

    added negative method

    >> m = 10.to_money
    >> m + -m
    #=> #<Money @cents=0>
    authored October 16, 2008
Something went wrong with that request. Please try again.