Module: Utf8EnforcerWorkaround::ActionController::Base::ClassMethods

Defined in:
lib/utf8_enforcer_workaround/action_controller/base.rb

Instance Method Summary collapse

Instance Method Details

#utf8_enforcer_workaroundObject



9
10
11
12
13
14
15
# File 'lib/utf8_enforcer_workaround/action_controller/base.rb', line 9

def utf8_enforcer_workaround
  if ActionPack::VERSION::STRING < "4.0.0"
    before_filter { @utf8_enforcer_tag_enabled = browser.ie? }
  elsif ActionPack::VERSION::STRING >= "4.0.0"
    before_action { @utf8_enforcer_tag_enabled = browser.ie? }
  end
end