Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 9fa46a9dc833381626a921fc23e370e706e8a5e6 1 parent 48d2d91
@rubiii rubiii authored
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.
Something went wrong with that request. Please try again.