Sha256: b7a86f55d524a7ce30e6dd30282a5371e80976c668d7c2289cf7d02468c48bca
Contents?: true
Size: 252 Bytes
Versions: 407
Compression:
Stored size: 252 Bytes
Contents
class Caboose::Setting < ActiveRecord::Base self.table_name = "settings" attr_accessible :id, :site_id, :name, :value def self.value_for(name) s = self.where(:name => name).first return '' if s.nil? return s.value end end
Version data entries
407 entries across 407 versions & 1 rubygems