Class: RrxConfig::Sources::LocalSource
- Defined in:
- lib/rrx_config/sources/local_source.rb
Overview
Read config from local files when running locally or testing
Instance Method Summary collapse
Instance Method Details
#read ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/rrx_config/sources/local_source.rb', line 10 def read if Rails.env.development? read_json_file development_config_path elsif Rails.env.test? read_json_file spec_config_path end end |