diff options
Diffstat (limited to 'config/initializers')
| -rw-r--r-- | config/initializers/xmlparser.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/config/initializers/xmlparser.rb b/config/initializers/xmlparser.rb deleted file mode 100644 index 1d5e06d9..00000000 --- a/config/initializers/xmlparser.rb +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | class XML::Node | ||
| 2 | def replace_with(other) | ||
| 3 | self.next = other | ||
| 4 | remove! | ||
| 5 | end | ||
| 6 | end | ||
| 7 | |||
| 8 | # Builder 3.x escapes content by default. Override _escape to pass text | ||
| 9 | # through raw, preserving existing behaviour from the Rails 2 era. | ||
| 10 | # Note: require builder first to ensure XmlBase < BasicObject is already | ||
| 11 | # defined before we reopen it. | ||
| 12 | require 'builder' | ||
| 13 | module Builder | ||
| 14 | class XmlBase | ||
| 15 | def _escape(text) | ||
| 16 | text | ||
| 17 | end | ||
| 18 | end | ||
| 19 | end | ||
