Class: Caboose::Setting
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Caboose::Setting
- 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 |