Skip to content
Browse files

Create currency folder, move currency_loader.rb there, rename and upd…

…ate paths
  • Loading branch information...
1 parent a3f77e3 commit 31aab275b8ffb0bbde871be64c530184dff0d856 Mikael Wikman committed Oct 2, 2012
Showing with 5 additions and 4 deletions.
  1. +0 −1 lib/money.rb
  2. +3 −1 lib/money/currency.rb
  3. +2 −2 lib/money/{currency_loader.rb → currency/loader.rb}
View
1 lib/money.rb
@@ -1,7 +1,6 @@
require "bigdecimal"
require "bigdecimal/util"
require "i18n" rescue LoadError
-require "money/currency_loader"
require "money/currency"
require "money/money"
require "money/core_extensions"
View
4 lib/money/currency.rb
@@ -7,7 +7,9 @@ class Money
# Represents a specific currency unit.
class Currency
include Comparable
- extend CurrencyLoader
+
+ require "money/currency/loader"
+ extend Loader
# Thrown when an unknown currency is requested.
class UnknownCurrency < StandardError; end
View
4 lib/money/currency_loader.rb → lib/money/currency/loader.rb
@@ -1,7 +1,7 @@
-module CurrencyLoader
+module Money::Currency::Loader
extend self
- DATA_PATH = File.expand_path("../../../config", __FILE__)
+ DATA_PATH = File.expand_path("../../../../config", __FILE__)
# Loads and returns the currencies stored in JSON files in the config directory.
#

0 comments on commit 31aab27

Please sign in to comment.
Something went wrong with that request. Please try again.