Skip to content

Instantly share code, notes, and snippets.

@blasterpal
Created June 10, 2010 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blasterpal/432971 to your computer and use it in GitHub Desktop.
Save blasterpal/432971 to your computer and use it in GitHub Desktop.
#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