Permalink
Browse files

update RoR documentation to favor money-rails

  • Loading branch information...
1 parent 83ac0f7 commit 8f77375f6b00651c65baa9db9e74c41294f89a80 @semmons99 semmons99 committed Sep 26, 2012
Showing with 2 additions and 24 deletions.
  1. +2 −24 README.md
View
@@ -231,28 +231,6 @@ implementations.
## Ruby on Rails
-To integrate money in a Rails application use [money-rails](http://github.com/RubyMoney/money-rails)
-gem or follow the instructions below.
+To integrate money in a Rails application use [money-rails](http://github.com/RubyMoney/money-rails).
-Define accessor methods to let Active Record deal with embedding the money
-object in your models. The following example requires 2 columns:
-
-``` ruby
-:price_cents, :integer, :default => 0, :null => false
-:price_currency, :string
-```
-
-Then in your model file:
-
-``` ruby
-def price
- Money.new price_cents || 0, price_currency || Money.default_currency
-end
-
-def price=(value)
- Money.parse(value).tap do |price|
- write_attribute :price_cents, price.cents
- write_attribute :price_currency, price.currency_as_string
- end
-end
-```
+For depreceated methods of integrating with Rails, check [the wiki](https://github.com/RubyMoney/money/wiki).

2 comments on commit 8f77375

Owner

semmons99 replied Sep 26, 2012

Hey @alup, I finally went ahead and made money-rails the defacto rails integration tool. Thanks for you hard work on the it!

Owner

alup replied Sep 26, 2012

@semmons99 👍 super!!!

Please sign in to comment.