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

Version Path
caboose-cms-0.6.24 app/models/caboose/setting.rb
caboose-cms-0.6.23 app/models/caboose/setting.rb
caboose-cms-0.6.22 app/models/caboose/setting.rb
caboose-cms-0.6.21 app/models/caboose/setting.rb
caboose-cms-0.6.20 app/models/caboose/setting.rb
caboose-cms-0.6.19 app/models/caboose/setting.rb
caboose-cms-0.6.18 app/models/caboose/setting.rb
caboose-cms-0.6.17 app/models/caboose/setting.rb
caboose-cms-0.6.16 app/models/caboose/setting.rb
caboose-cms-0.6.15 app/models/caboose/setting.rb
caboose-cms-0.6.14 app/models/caboose/setting.rb
caboose-cms-0.6.13 app/models/caboose/setting.rb
caboose-cms-0.6.12 app/models/caboose/setting.rb
caboose-cms-0.6.11 app/models/caboose/setting.rb
caboose-cms-0.6.10 app/models/caboose/setting.rb
caboose-cms-0.6.9 app/models/caboose/setting.rb
caboose-cms-0.6.8 app/models/caboose/setting.rb
caboose-cms-0.6.7 app/models/caboose/setting.rb
caboose-cms-0.6.6 app/models/caboose/setting.rb
caboose-cms-0.6.5 app/models/caboose/setting.rb