Module: CouchRest::Model::Proxyable

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/couchrest/model/proxyable.rb

Overview

:nodoc: Because I like inventing words

Defined Under Namespace

Modules: ClassMethods Classes: ModelProxy

Instance Method Summary collapse

Instance Method Details

#proxy_databaseObject

Raises:

  • (StandardError)


7
8
9
10
# File 'lib/couchrest/model/proxyable.rb', line 7

def proxy_database
  raise StandardError, "Please set the #proxy_database_method" if self.class.proxy_database_method.nil?
  @proxy_database ||= self.class.prepare_database(self.send(self.class.proxy_database_method))
end