Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Modifies i18n load paths to work well with rails3
  • Loading branch information
xijo committed Apr 19, 2012
1 parent 46dfa05 commit de616c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/spell_number.rb
Expand Up @@ -2,11 +2,11 @@
require 'i18n'

module SpellNumber
I18n.load_path << Dir[File.join(File.dirname(__FILE__), '..', 'locales', '*.{rb,yml}').to_s]

I18n.load_path += Dir[File.join(File.dirname(__FILE__), '..', 'locales', '*.{rb,yml}').to_s]

def self.number_to_words(number, options = {})
Speller.new(options).number_to_words(number)
end

end

0 comments on commit de616c0

Please sign in to comment.