Module: Campchair::Model::ClassMethods
- Defined in:
- lib/campchair/model.rb
Instance Method Summary collapse
Instance Method Details
#load(key) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/campchair/model.rb', line 18 def load(key) return unless exists?(key) entity = new entity.key = key entity.reload entity end |