Sha256: 7f20cfad11398f217c88bf302414caea897bb811e3c28159746a1d85d4ace264
Contents?: true
Size: 261 Bytes
Versions: 6
Compression:
Stored size: 261 Bytes
Contents
class Setting < ActiveRecord::Base validates :name, presence: true, uniqueness: { case_sensitive: false } def value YAML.load read_attribute(:value) end def value=(value) write_attribute :value, value.to_yaml end end
Version data entries
6 entries across 6 versions & 1 rubygems