lib/globalize2/pages_controller_extensions.rb in radiant-globalize2-extension-0.2.0 vs lib/globalize2/pages_controller_extensions.rb in radiant-globalize2-extension-0.2.1
- old
+ new
@@ -3,7 +3,12 @@
def self.included(base)
base.class_eval do
before_filter :reset_locale, :only => [:new]
end
end
+
+ def reset_locale
+ @locale = Globalize2Extension.default_language
+ Globalize2Extension.content_locale = I18n.locale = @locale.to_sym
+ end
end
end
\ No newline at end of file