Module: Slingshot::Model::Persistence::Storage::ClassMethods
- Defined in:
- lib/slingshot/model/persistence/storage.rb
Instance Method Summary collapse
Instance Method Details
#create(args = {}) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/slingshot/model/persistence/storage.rb', line 19 def create(args={}) document = new(args) return false unless document.valid? document.save document end |