Module: Utf8EnforcerWorkaround::ActionController::Base::ClassMethods
- Defined in:
- lib/utf8_enforcer_workaround/action_controller/base.rb
Instance Method Summary collapse
Instance Method Details
#utf8_enforcer_workaround ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/utf8_enforcer_workaround/action_controller/base.rb', line 8 def utf8_enforcer_workaround if ActionPack::VERSION::STRING < "5.0.0" before_filter do @utf8_enforcer_tag_enabled = browser.ie? end elsif ActionPack::VERSION::STRING >= "5.0.0" before_action do @utf8_enforcer_tag_enabled = browser.ie? end end end |