grasshopperlabs/chargify_api_ares — pull request #25 by jgkite (2011-10-19 21:11:04+00:00)
Title: Please honor subsequent changes to configuration

Allows anyone using this gem to change the configuration within a script, for example:

def clone_site(old_subdomain, new_subdomain)
Chargify.configure do |c|
c.subdomain = old_subdomain
end

products_to_migrate = Chargify::Product.all # old site

Chargify.configure do |c|
c.subdomain = new_subdomain
end

do_the_clone! # uses the new site
end