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.5.222 app/models/caboose/setting.rb
caboose-cms-0.5.221 app/models/caboose/setting.rb
caboose-cms-0.5.220 app/models/caboose/setting.rb
caboose-cms-0.5.219 app/models/caboose/setting.rb
caboose-cms-0.5.218 app/models/caboose/setting.rb
caboose-cms-0.5.217 app/models/caboose/setting.rb
caboose-cms-0.5.216 app/models/caboose/setting.rb
caboose-cms-0.5.215 app/models/caboose/setting.rb
caboose-cms-0.5.214 app/models/caboose/setting.rb
caboose-cms-0.5.213 app/models/caboose/setting.rb
caboose-cms-0.5.212 app/models/caboose/setting.rb
caboose-cms-0.5.211 app/models/caboose/setting.rb
caboose-cms-0.5.210 app/models/caboose/setting.rb
caboose-cms-0.5.209 app/models/caboose/setting.rb
caboose-cms-0.5.208 app/models/caboose/setting.rb
caboose-cms-0.5.207 app/models/caboose/setting.rb
caboose-cms-0.5.206 app/models/caboose/setting.rb
caboose-cms-0.5.205 app/models/caboose/setting.rb
caboose-cms-0.5.204 app/models/caboose/setting.rb
caboose-cms-0.5.203 app/models/caboose/setting.rb