Sha256: 9befd1a568b6f50aded81403a9aca3a13f406d285873ec5e2ddfbfe76752f150
Contents?: true
Size: 263 Bytes
Versions: 38
Compression:
Stored size: 263 Bytes
Contents
class Configuration < ActiveRecord::Base serialize :data def self.[](key) key = find_by_key(key.to_s) key.nil? ? nil : key.data end def self.[]=(key, data) c = find_or_create_by_key(key.to_s) c.update_attribute :data, data end end
Version data entries
38 entries across 38 versions & 15 rubygems