Created
January 6, 2010 17:38
-
-
Save lenny/270446 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AppConfig | |
class << self | |
attr_accessor :site_name | |
attr_accessor :payment_gateway_mode | |
... | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.after_initialize do | |
AppConfig.payment_gateway_mode = :test | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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