Browse files

make sure to always require extended core classes

both StringWithAttributes and StringIOFile need to be loaded to prevent
e.g. session problems like:

ActionDispatch::Session::SessionRestoreError
(Session contains objects whose class definition isn't available.)

Original exception: uninitialized constant Nori::StringWithAttributes
  • Loading branch information...
1 parent 48d2d91 commit 9fa46a9dc833381626a921fc23e370e706e8a5e6 @rubiii rubiii committed Jun 21, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −0 lib/nori.rb
  2. +0 −1 lib/nori/parser/nokogiri.rb
  3. +0 −1 lib/nori/parser/rexml.rb
View
1 lib/nori.rb
@@ -1,6 +1,7 @@
require "nori/version"
require "nori/core_ext"
require "nori/parser"
+require "nori/xml_utility_node"
module Nori
extend self
View
1 lib/nori/parser/nokogiri.rb
@@ -1,5 +1,4 @@
require "nokogiri"
-require "nori/xml_utility_node"
module Nori
module Parser
View
1 lib/nori/parser/rexml.rb
@@ -1,5 +1,4 @@
require "rexml/parsers/baseparser"
-require "nori/xml_utility_node"
module Nori
module Parser

0 comments on commit 9fa46a9

Please sign in to comment.