Permalink
Browse files

Usando o autoload ao invés do require explícito

  • Loading branch information...
1 parent 7e28c6c commit 08d88c3fb4929ef5513599a23859692e7afea594 @rafaelfranca rafaelfranca committed Nov 11, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/moip.rb
  2. 0 lib/{ → moip}/direct_payment.rb
View
@@ -4,9 +4,9 @@
require 'httparty'
require "nokogiri"
-require "direct_payment"
-
module MoIP
+ autoload :DirectPayment, 'moip/direct_payment'
+
include HTTParty
# URI para acessar o serviço
File renamed without changes.

0 comments on commit 08d88c3

Please sign in to comment.