Class: DevPanel::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/devpanel/rails.rb

Class Method Summary collapse

Class Method Details

.initial_value(key, default) ⇒ Object


3
4
5
6
7
# File 'lib/devpanel/rails.rb', line 3

def self.initial_value(key, default)
  initial = Rails.application.config.send(key)
  rescue
    initial = default
end