Sha256: 8a05fd1e3b71c22a22da7b68a87b4f5450ec160136a3ced205ae4671cce679ad

Contents?: true

Size: 412 Bytes

Versions: 4

Compression:

Stored size: 412 Bytes

Contents

require "browser"

module Utf8EnforcerWorkaround
  module ActionController
    module Base
      extend ActiveSupport::Concern
      module ClassMethods
        def utf8_enforcer_workaround
          before_filter do
            @utf8_enforcer_tag_enabled = browser.ie?
          end
        end
      end
    end
  end
end

ActionController::Base.send(:include, Utf8EnforcerWorkaround::ActionController::Base)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
utf8_enforcer_workaround-1.1.0 lib/utf8_enforcer_workaround/action_controller/base.rb
utf8_enforcer_workaround-1.0.1 lib/utf8_enforcer_workaround/action_controller/base.rb
utf8_enforcer_workaround-1.0.0 lib/utf8_enforcer_workaround/action_controller/base.rb
utf8_enforcer_workaround-0.0.2 lib/utf8_enforcer_workaround/action_controller/base.rb