Permalink
Browse files

Fixed by Mathieu Fosse: helpers didn't worked as expected when lang_p…

…aram_key is undefined
  • Loading branch information...
1 parent 1b62e9a commit 9f33253757519edee8fe67b32fd888eab42ff4bf @raul committed Aug 5, 2008
View
@@ -1,3 +1,6 @@
+-- 0.96.1 (Aug 5th 2008)
+ * Fixed by Mathieu Fosse: helpers didn't worked as expected when lang_param_key is undefined
+
-- 0.96 (Jun 10th 2008)
* Added update_yaml task, suggested by Francesc Esplugas
@@ -1,3 +1,9 @@
+-- 0.96.1 (Aug 5th 2008)
+ * Fixed by Mathieu Fosse: helpers didn't worked as expected when lang_param_key is undefined
+
+-- 0.96 (Jun 10th 2008)
+ * Added update_yaml task, suggested by Francesc Esplugas
+
-- 0.95 (Jan 21st 2008)
* Still beta version
* Added yaml files support for dictionaries
@@ -92,7 +92,7 @@ def #{new_helper_name}(*args)
if defined? @#{lang_param_key}
send("#{old_name}_\#{@#{lang_param_key}}_#{suffix}", *args)
else
- send("#{old_name}_\#{@#{default_lang}}_#{suffix}", *args)
+ send("#{old_name}_#{default_lang}_#{suffix}", *args)
end
end
DEF_NEW_HELPER
View
@@ -92,7 +92,7 @@ def #{new_helper_name}(*args)
if defined? @#{lang_param_key}
send("#{old_name}_\#{@#{lang_param_key}}_#{suffix}", *args)
else
- send("#{old_name}_\#{@#{default_lang}}_#{suffix}", *args)
+ send("#{old_name}_#{default_lang}_#{suffix}", *args)
end
end
DEF_NEW_HELPER

0 comments on commit 9f33253

Please sign in to comment.