Sha256: 09110c13b1355607df7076ea51e35dce49d56b59d4e1012b26ffefaac66fc9e5
Contents?: true
Size: 408 Bytes
Versions: 1
Compression:
Stored size: 408 Bytes
Contents
require 'yaml' module ActiveadminPoroDecorator module Config class Reader def initialize @config = if ENV['RAILS_ENV'] == 'test' YAML.load_file('spec/support/dummy/config/activeadmin-poro-decorator.yml') else YAML.load_file('config/activeadmin-poro-decorator.yml') end end def param(name) @config[name] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-poro-decorator-0.2.0 | lib/activeadmin-poro-decorator/config.rb |