Skip to content

Instantly share code, notes, and snippets.

@diabolo
Forked from lenny/development.rb
Created January 6, 2010 18:03
Show Gist options
  • Save diabolo/270479 to your computer and use it in GitHub Desktop.
Save diabolo/270479 to your computer and use it in GitHub Desktop.
class AppConfig
class << self
attr_accessor :site_name
attr_accessor :gateway
...
end
end
config.after_initialize do
AppConfig.gateway = ActiveMerchant::Billing::AxiarGateway.new(:login => 'test', :password => 'test', :mode => self.gateway_mode)
end
...
require 'app_config'
AppConfig.site_name = 'My Site'
..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment