Class: Caboose::Setting

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/caboose/setting.rb

Class Method Summary collapse

Class Method Details

.value_for(name) ⇒ Object



6
7
8
9
10
# File 'app/models/caboose/setting.rb', line 6

def self.value_for(name)
  s = self.where(:name => name).first
  return '' if s.nil?
  return s.value
end