Class: Qbrick::Setting
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Qbrick::Setting
- Defined in:
- app/models/qbrick/setting.rb
Class Method Summary collapse
Class Method Details
.[](key) ⇒ Object
8 9 10 |
# File 'app/models/qbrick/setting.rb', line 8 def [](key) find_by_key(key.to_s).try(:value) || '' end |