Permalink
Browse files

Fix typo in method name and README

  • Loading branch information...
1 parent 87ffa51 commit 4bea70b7768372de7de9bd26a7f52462b472a4ad @bryanrite bryanrite committed Feb 15, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 README.md
  2. +2 −2 lib/money-rails/configuration.rb
  3. BIN spec/dummy/db/test.sqlite3
View
@@ -320,7 +320,7 @@ MoneyRails.configure do |config|
end
```
-* ```default_currecy```: Set the default (application wide) currency (USD is the default)
+* ```default_currency```: Set the default (application wide) currency (USD is the default)
* ```include_validations```: Permit the inclusion of a ```validates_numericality_of```
validation for each monetized field (the default is true)
* ```register_currency```: Register one custom currency. This option can be
@@ -28,7 +28,7 @@ def default_currency
def default_currency=(currency_name)
Money.default_currency = Money::Currency.new(currency_name)
set_amount_column_for_default_currency!
- set_currecy_column_for_default_currency!
+ set_currency_column_for_default_currency!
end
# Register a custom currency
@@ -40,7 +40,7 @@ def set_amount_column_for_default_currency!
amount_column.merge! postfix: "_#{default_currency.subunit.downcase.pluralize}"
end
- def set_currecy_column_for_default_currency!
+ def set_currency_column_for_default_currency!
iso_code = default_currency.iso_code
currency_column.merge! default: iso_code
end
Binary file not shown.

0 comments on commit 4bea70b

Please sign in to comment.