Module: RedisRedirect::Persistence::ClassMethods

Defined in:
lib/redis-redirect/persistence.rb

Instance Method Summary collapse

Instance Method Details

#create(attributes = nil) ⇒ Object



9
10
11
12
13
# File 'lib/redis-redirect/persistence.rb', line 9

def create(attributes = nil)
  object = new(attributes)
  object.save
  object
end