Displaying 1 result from an estimated 1 matches for "my_currency_const".
2006 Mar 03
1
number_to_currency() helper == non DRY == could be improved
...ncy to display as GBP, ?,
SEK or any other currency ? Then I would have to create a CONSTANT
for that currency and then include that option in every instance of
the ''number_to_currency()'' method.
number_to_currency(0.02) versus number_to_currency(0.02,
{:unit => MY_CURRENCY_CONSTANT} )
Not to bad some may say, but it''s still not exactly DRY nor elegant
is it ?
Instead I would propose as similar scheme to the ''session_key''
override functionality that I use a lot.
## add a custom session ID for this site (when developing with many
apps on...