Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Simple config class
## Simple config class - testing purposes =)
FooConfig = Class.new do
def initialize(config_file, env)
@config = YAML.load_file(config_file)[env]
end
def method_missing(method, *args)
@config.send(:[], method.to_s, *args)
end
end.new('config/foo.yml', Rails.env)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.