Class: Rails::Couchbase::Railtie
- Inherits:
-
Railtie
- Object
- Railtie
- Rails::Couchbase::Railtie
- Defined in:
- lib/couchbase-orm/railtie.rb
Overview
:nodoc:
Class Method Summary collapse
-
.rescue_responses ⇒ Hash
Maping of rescued exceptions to HTTP responses.
Class Method Details
.rescue_responses ⇒ Hash
Maping of rescued exceptions to HTTP responses
36 37 38 39 40 41 42 43 |
# File 'lib/couchbase-orm/railtie.rb', line 36 def self.rescue_responses { 'Libcouchbase::Error::KeyNotFound' => :not_found, 'Libcouchbase::Error::NotStored' => :unprocessable_entity, Libcouchbase::Error::KeyNotFound => :not_found, Libcouchbase::Error::NotStored => :unprocessable_entity } end |