Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Autoload XmlNode

  • Loading branch information...
commit 66d31f6740a98086e3f5629236eac8cfa358a3b3 1 parent 3ef0e62
Tobias Lütke authored
6 lib/active_shipping.rb
View
@@ -31,10 +31,8 @@
require "active_support/all"
end
-require 'vendor/xml_node/lib/xml_node'
-require 'vendor/quantified/lib/quantified'
-require 'quantified/mass'
-require 'quantified/length'
+autoload :XmlNode, 'vendor/xml_node/lib/xml_node'
+autoload :Quantified, 'vendor/quantified/lib/quantified'
require 'net/https'
require 'active_merchant/common'
4 lib/vendor/quantified/lib/quantified.rb
View
@@ -3,4 +3,6 @@
require 'active_support/all'
require 'bigdecimal'
-require 'quantified/attribute'
+require 'quantified/attribute'
+require 'quantified/mass'
+require 'quantified/length'
3  test/test_helper.rb
View
@@ -5,6 +5,9 @@
require 'active_shipping'
require 'mocha'
+
+XmlNode # trigger autorequire
+
module Test
module Unit
class TestCase
Please sign in to comment.
Something went wrong with that request. Please try again.