zaidakram / expedia

Expedia is a ruby wrapper for EAN (Expedia Affiliate Network)
http://zaidakram.github.io/expedia/
MIT License
48 stars 29 forks source link

Allow `cid` to be a string #9

Closed jordelver closed 10 years ago

jordelver commented 10 years ago

I was loading the configuration for Expedia.cid directly from a Rails.configuration value like this:

Expedia.cid = Rails.configuration.expedia_cid

When doing this, the value supplied will always be a String. This was causing authentication to fail with Expedia as the production server was being used instead of the development server. I think this is a very common use case. This commit fixes potential head scratching.

zaidakram commented 10 years ago

Thanks!