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
4
spec/fixtures/more/user.rb
vendored
4
spec/fixtures/more/user.rb
vendored
|
@ -1,11 +1,11 @@
|
|||
class User < CouchRest::ExtendedDocument
|
||||
class User < CouchRest::Model::Base
|
||||
# Set the default database to use
|
||||
use_database DB
|
||||
property :name, :accessible => true
|
||||
property :admin # this will be automatically protected
|
||||
end
|
||||
|
||||
class SpecialUser < CouchRest::ExtendedDocument
|
||||
class SpecialUser < CouchRest::Model::Base
|
||||
# Set the default database to use
|
||||
use_database DB
|
||||
property :name # this will not be protected
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue