Sha256: ebc1404ccdbe78f733ea84e1dac1c5ff8f50d512c4355b76166e5ce3581653f5
Contents?: true
Size: 508 Bytes
Versions: 5
Compression:
Stored size: 508 Bytes
Contents
module ActionController class Base around_filter :prepare_rich_i18n def prepare_rich_i18n String.clear_translations ::Rich::I18n::Engine.current_controller = self yield ensure ::Rich::I18n::Engine.current_controller = nil end view_path = File.expand_path "../../../../../../app/views", __FILE__ if respond_to? :append_view_path self.append_view_path view_path elsif respond_to? :view_paths self.view_paths << view_path end end end
Version data entries
5 entries across 5 versions & 1 rubygems