Class: TinyCore::Config
- Inherits:
-
Object
- Object
- TinyCore::Config
- Defined in:
- lib/tiny_core/config.rb
Class Method Summary collapse
Class Method Details
.config ⇒ Object
11 12 13 |
# File 'lib/tiny_core/config.rb', line 11 def self.config YAML.load(File.read("#{RAILS_ROOT}/config/config.yml")) end |
.method_missing(method) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/tiny_core/config.rb', line 3 def self.method_missing(method) if config.has_key?(method.to_s) config[method.to_s] else super end end |