Irio/mymoip — pull request #6 by klebershimabuku (2012-10-11 21:17:06+00:00)
Title: Ordem de require

Prevenção caso se tente carregar os arquivos antes das dependências.

No caso, em meu sistema, estava-se tentando carregar os arquivos `transparent_request.rb` e `payment_request.rb` antes que o `request.rb` tivesse sido carregado. O que ocasiona um erro.

/home/developer5/.rvm/gems/ruby-1.9.2-p290@proj/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require': no such file to load -- request (LoadError)
from /home/developer5/.rvm/gems/ruby-1.9.2-p290@proj/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require'
from /home/developer5/.rvm/gems/ruby-1.9.2-p290@proj/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/developer5/.rvm/gems/ruby-1.9.2-p290@proj/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
from /home/developer5/.rvm/gems/ruby-1.9.2-p290@proj/gems/mymoip-0.2.1/lib/mymoip.rb:25:in `'
from /home/developer5/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:in `require'
from /home/developer5/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /home/developer5/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:in `each'
from /home/developer5/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:66:in `block in require'
from /home/developer5/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in `each'
from /home/developer5/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in `require'
from /home/developer5/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.2.1/lib/bundler.rb:128:in `require'
from /home/developer5/Projects/WUEBA/config/application.rb:8:in `'
from /home/developer5/.rvm/gems/ruby-1.9.2-p290@proj/gems/railties-3.2.3/lib/rails/commands.rb:53:in `require'
from /home/developer5/.rvm/gems/ruby-1.9.2-p290@proj/gems/railties-3.2.3/lib/rails/commands.rb:53:in `block in '
from /home/developer5/.rvm/gems/ruby-1.9.2-p290@proj/gems/railties-3.2.3/lib/rails/commands.rb:50:in `tap'
from /home/developer5/.rvm/gems/ruby-1.9.2-p290@proj/gems/railties-3.2.3/lib/rails/commands.rb:50:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'