Class: Setting
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Setting
- Defined in:
- app/models/setting.rb
Instance Method Summary collapse
Instance Method Details
#value ⇒ Object
6 7 8 |
# File 'app/models/setting.rb', line 6 def value YAML.load read_attribute(:value) end |
#value=(value) ⇒ Object
10 11 12 |
# File 'app/models/setting.rb', line 10 def value=(value) write_attribute :value, value.to_yaml end |