lib/g11n/configuration.rb in g11n-0.0.3 vs lib/g11n/configuration.rb in g11n-0.0.4
- old
+ new
@@ -1,10 +1,11 @@
module G11n
# DSL for the configuration of G11n
module Configuration
# Sets the translations path
- def path the_path
- Translator.instance.translations_path = the_path + "/"
+ def path the_path = nil
+ Translator.instance.translations_path = the_path + "/" if the_path
+ Translator.instance.translations_path
end
# Sets or get the locale
def locale the_locale = nil
Translator.instance.locale = the_locale if the_locale