Module: RailsParseFixes

Defined in:
lib/rails_parse_fixes.rb,
lib/rails_parse_fixes/version.rb

Constant Summary collapse

VERSION =
"2.3.0"

Class Method Summary collapse

Class Method Details

.applyObject



7
8
9
10
11
12
# File 'lib/rails_parse_fixes.rb', line 7

def apply
  ActiveSupport::CoreExtensions::Hash::Conversions::XML_PARSING.delete('symbol')
  ActiveSupport::CoreExtensions::Hash::Conversions::XML_PARSING.delete('yaml')
  ActionController::Base.param_parsers.delete(Mime::XML)
  @@loaded = true
end

.loaded?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/rails_parse_fixes.rb', line 14

def loaded?
  @@loaded
end