Module: CouchRest::Model::Rotation

Extended by:
ActiveSupport::Concern
Includes:
DatabaseMethod
Included in:
Session::Document
Defined in:
lib/couchrest/model/rotation.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from DatabaseMethod

#==, #database, #database!, #database_exists?

Instance Method Details

#create(*args) ⇒ Object



11
12
13
14
15
# File 'lib/couchrest/model/rotation.rb', line 11

def create(*args)
  super(*args)
rescue RestClient::ResourceNotFound => exc
  raise storage_missing(exc)
end

#destroy(*args) ⇒ Object



23
24
25
26
27
# File 'lib/couchrest/model/rotation.rb', line 23

def destroy(*args)
  super(*args)
rescue RestClient::ResourceNotFound => exc
  raise storage_missing(exc)
end

#update(*args) ⇒ Object



17
18
19
20
21
# File 'lib/couchrest/model/rotation.rb', line 17

def update(*args)
  super(*args)
rescue RestClient::ResourceNotFound => exc
  raise storage_missing(exc)
end