Module: Golden::Setting::Value

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/golden/setting/value.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#valueObject



57
58
59
60
# File 'lib/golden/setting/value.rb', line 57

def value
  return if self[:value].nil?
  YAML::load self[:value]
end

#value=(new_value) ⇒ Object



62
63
64
# File 'lib/golden/setting/value.rb', line 62

def value= new_value
  self[:value] = new_value.to_yaml
end