Skip to content

Commit

Permalink
use hash that accepts string everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertlepicki committed Mar 10, 2011
1 parent 58e9d0a commit cccb9c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/modles/go_translate_yourself/base_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def load_default_translations
@default_translations = HashWithIndifferentAccess.new
@mtime = dev_translations_mtime
Dir.glob(File.join(Rails.root, "config", "locales", "*.yml")).each do |locale_file|
translations = YAML.load_file(locale_file)
translations = HashWithIndifferentAccess.new(YAML.load_file(locale_file))
code = File.basename(locale_file).sub(".yml", "")
flatten_keys(code, translations[code], @default_translations)
end
Expand Down

0 comments on commit cccb9c3

Please sign in to comment.