Renaming to CouchRest Model
Refactored basic directory structure. Moved to ActiveSupport for Validations and Callbacks. Cleaned up older code, and removed support for text property types.
This commit is contained in:
parent
9f1eea8d32
commit
c280b3a29b
70 changed files with 1725 additions and 3733 deletions
7
spec/fixtures/more/cat.rb
vendored
7
spec/fixtures/more/cat.rb
vendored
|
@ -1,16 +1,13 @@
|
|||
|
||||
class CatToy < Hash
|
||||
include ::CouchRest::CastedModel
|
||||
include ::CouchRest::Validation
|
||||
include ::CouchRest::Model::CastedModel
|
||||
|
||||
property :name
|
||||
|
||||
validates_presence_of :name
|
||||
end
|
||||
|
||||
class Cat < CouchRest::ExtendedDocument
|
||||
include ::CouchRest::Validation
|
||||
|
||||
class Cat < CouchRest::Model::Base
|
||||
# Set the default database to use
|
||||
use_database DB
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue