Sha256: ed62a633899eaf5b540f34d73ab035e8229fa1962f3d92d7d24894ecca0a556a
Contents?: true
Size: 237 Bytes
Versions: 443
Compression:
Stored size: 237 Bytes
Contents
class Caboose::Setting < ActiveRecord::Base self.table_name = "settings" attr_accessible :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
443 entries across 443 versions & 1 rubygems