Created
June 10, 2010 13:13
-
-
Save blasterpal/432971 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
#in environment.rb refer to this file BEFORE Initializer block or load in a file via require | |
# then use in code like this MyOracle.city_mapping_table | |
module MyOracle | |
module Configuration | |
def oracle | |
MyOracle | |
end | |
end | |
class << self | |
attr_accessor :city_mapping_table, :topsearch_table, :postalcode_table, :state_table | |
end | |
end | |
Rails::Configuration.send :include, MyOracle::Configuration |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment