observe_locales around filter should yield even if globalize is disabled
-
Aitor Garay-Romero
Let's see if the formating is better...
Index: vendor/plugins/click-to-globalize/lib/click_to_globalize.rb
===================================================================
--- vendor/plugins/click-to-globalize/lib/click_to_globalize.rb (revision 810)
+++ vendor/plugins/click-to-globalize/lib/click_to_globalize.rb (working copy)
@@ -203,7 +203,10 @@
- request is processed.
- LocaleObserver catches all translations and pass them to the session.
def observe_locales
- return unless globalize?
- unless globalize?
- yield
- return
- end
locale_observer = LocaleObserver.new
Locale.add_observer(locale_observer)
yield
-
Aitor Garay-Romero
No :(
-
Luca Guidi
- State changed from new to open
- Tag set to bug, filter
- Milestone set to Rails 2.1.x
-
Luca Guidi
- State changed from open to resolved
(from [e19f1c8aa9eb176afe6cbc3c14a02e8c001749c7]) Make sure observe_locales filter always yield the action even if #globalize? return false [#4 state:resolved]
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.