tc/paypal_adaptive — Issue #39: In a Rake Task: uninitialized constant PaypalAdaptive::Config::Rails 
Author: jeregrine
Created: 2011-12-28 23:11:58+00:00
State: open

I am trying to use your gem inside of a Rake Task. Whenever I do
```pay_request = PaypalAdaptive::Request.new
```
I get the following error

```
uninitialized constant PaypalAdaptive::Config::Rails
/Users/jasonstiebs/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/ext/module.rb:36:in `const_missing'
/Users/jasonstiebs/.rvm/gems/ruby-1.9.2-p290/gems/paypal_adaptive-0.2.6/lib/paypal_adaptive/config.rb:26:in `initialize'
/Users/jasonstiebs/.rvm/gems/ruby-1.9.2-p290/gems/paypal_adaptive-0.2.6/lib/paypal_adaptive/request.rb:12:in `new'
/Users/jasonstiebs/.rvm/gems/ruby-1.9.2-p290/gems/paypal_adaptive-0.2.6/lib/paypal_adaptive/request.rb:12:in `initialize'
```
I am attempting to do payments in a rake task so I can run this on Heroku as a scheduled task. My question is why does error occur? I am looking at the code and I don't see a Rails const declared at least till later in the file.

SIDEBAR: Also why does this application need to be so tied to Rails? The way its written and developed I see no reason other then paypal postback, which could be a separate project in my opinion. Even the config could be more generic. I suppose I could just fork it and make a pull request :S