Skip to content

Instantly share code, notes, and snippets.

@fiftin
Last active October 20, 2016 10:29
Show Gist options
  • Save fiftin/1767768eec860acec16f to your computer and use it in GitHub Desktop.
Save fiftin/1767768eec860acec16f to your computer and use it in GitHub Desktop.
Spree Commerce: Russian Ruble Symbol

If you want use Russian Ruble currency in Spree Commerce you should add this monay.rb to config/initializer directory of your project.

rub = {
:priority => 1,
:iso_code => "RUB",
:iso_numeric => "643",
:name => "Russian ruble",
:symbol => "р.",
:subunit => "Kopeck",
:subunit_to_unit => 100,
:separator => ".",
:delimiter => ",",
:html_entity => "р."
}
Money::Currency.register(rub)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment