Skip to content

Commit

Permalink
Make Translate::Storage constructor insensitive to whether locale is …
Browse files Browse the repository at this point in the history
…string or symbol
  • Loading branch information
Peter Marklund committed Jan 30, 2009
1 parent 9287e2f commit 29133ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/translate/storage.rb
Expand Up @@ -2,7 +2,7 @@ class Translate::Storage
attr_accessor :locale

def initialize(locale)
self.locale = locale
self.locale = locale.to_sym
end

def write_to_file
Expand Down

0 comments on commit 29133ee

Please sign in to comment.