RubyMoney/money — pull request #128 by semaperepelitsa (2011-12-09 21:39:29+00:00)
Title: Add currency.code

I use Money::Currency to represent currencies and display them along the money amount in my apps. However not all currencies have symbols (e. g. AZN) so I always use `currency.symbol || currency.iso_code` to print them. I think this is a common pattern and should be included in the class. I've added `currency.code` method that does the same thing as `currency.symbol || currency.iso_code`. I'm not sure if this is a good method name but I don't have any more ideas. What do you think?