Module CouchPotato
In: lib/couch_potato/persistence/deep_tracked_property.rb
lib/couch_potato/persistence/type_caster.rb
lib/couch_potato/persistence/properties.rb
lib/couch_potato/persistence/active_model_compliance.rb
lib/couch_potato/persistence/revisions.rb
lib/couch_potato/persistence/magic_timestamps.rb
lib/couch_potato/persistence/attachments.rb
lib/couch_potato/persistence/ghost_attributes.rb
lib/couch_potato/persistence/callbacks.rb
lib/couch_potato/persistence/deep_dirty_attributes.rb
lib/couch_potato/persistence/json.rb
lib/couch_potato/persistence/dirty_attributes.rb
lib/couch_potato/persistence/simple_property.rb
lib/couch_potato/forbidden_attributes_protection.rb
lib/couch_potato/railtie.rb
lib/couch_potato/version.rb
lib/couch_potato/persistence.rb
lib/couch_potato/database.rb
lib/couch_potato/view/lists.rb
lib/couch_potato/view/custom_views.rb
lib/couch_potato/view/raw_view_spec.rb
lib/couch_potato/view/properties_view_spec.rb
lib/couch_potato/view/model_view_spec.rb
lib/couch_potato/view/custom_view_spec.rb
lib/couch_potato/view/view_query.rb
lib/couch_potato/view/base_view_spec.rb
lib/couch_potato/validation.rb
lib/couch_potato.rb

Methods

Classes and Modules

Module CouchPotato::Attachments
Module CouchPotato::ForbiddenAttributesProtection
Module CouchPotato::Persistence
Module CouchPotato::Validation
Module CouchPotato::View
Class CouchPotato::Conflict
Class CouchPotato::Database
Class CouchPotato::NotFound
Class CouchPotato::Railtie

Constants

VERSION = '1.7.1'.freeze
RSPEC_VERSION = '3.4.0'.freeze
Config = Struct.new(:database_host, :database_name, :digest_view_names, :split_design_documents_per_view, :default_language).new

Public Class methods

Returns the underlying CouchRest database object if you want low level access to your CouchDB. You have to set the CouchPotato::Config.database_name before this works.

Returns a CouchRest-Database for directly accessing that functionality.

Creates a CouchRest-Database for directly accessing that functionality.

Returns a database instance which you can then use to create objects and query views. You have to set the CouchPotato::Config.database_name before this works.

returns all the classes that include the CouchPotato::Persistence module

Returns a specific database instance

Executes a block of code and yields a datbase with the given name.

example:

 CouchPotato.with_database('couch_customer') do |couch|
   couch.save @customer
 end

[Validate]