Module: RedisModelExtension::ClassCreate
- Defined in:
- lib/redis-model-extension/save_destroy.rb
Instance Method Summary collapse
-
#create(args = {}) ⇒ Object
create instance and save it.
Instance Method Details
#create(args = {}) ⇒ Object
create instance and save it
7 8 9 10 11 |
# File 'lib/redis-model-extension/save_destroy.rb', line 7 def create args = {} instance = self.new(args) instance.save return instance end |