Skip to content

Commit

Permalink
Autoload XmlNode
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi committed Jun 28, 2010
1 parent 3ef0e62 commit 66d31f6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 2 additions & 4 deletions lib/active_shipping.rb
Expand Up @@ -31,10 +31,8 @@
require "active_support/all" require "active_support/all"
end end


require 'vendor/xml_node/lib/xml_node' autoload :XmlNode, 'vendor/xml_node/lib/xml_node'
require 'vendor/quantified/lib/quantified' autoload :Quantified, 'vendor/quantified/lib/quantified'
require 'quantified/mass'
require 'quantified/length'


require 'net/https' require 'net/https'
require 'active_merchant/common' require 'active_merchant/common'
Expand Down
4 changes: 3 additions & 1 deletion lib/vendor/quantified/lib/quantified.rb
Expand Up @@ -3,4 +3,6 @@
require 'active_support/all' require 'active_support/all'
require 'bigdecimal' require 'bigdecimal'


require 'quantified/attribute' require 'quantified/attribute'
require 'quantified/mass'
require 'quantified/length'
3 changes: 3 additions & 0 deletions test/test_helper.rb
Expand Up @@ -5,6 +5,9 @@
require 'active_shipping' require 'active_shipping'
require 'mocha' require 'mocha'



XmlNode # trigger autorequire

module Test module Test
module Unit module Unit
class TestCase class TestCase
Expand Down

0 comments on commit 66d31f6

Please sign in to comment.