Class: Cockpit::AR::Setting

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/cockpit/stores/active_record.rb

Instance Method Summary collapse

Instance Method Details

#cockpitObject



69
70
71
# File 'lib/cockpit/stores/active_record.rb', line 69

def cockpit
  configurable ? configurable.cockpit : Cockpit::Settings.global
end

#parsed_valueObject



73
74
75
# File 'lib/cockpit/stores/active_record.rb', line 73

def parsed_value
  value#['root']
end