| Class | CouchRest::Model::Design |
| In: |
lib/couchrest/model/design.rb
|
| Parent: | ::CouchRest::Design |
| auto_update | [RW] | Can this design save itself to the database? If false, the design will be loaded automatically before a view is executed. |
| method_name | [RW] | The model Class that this design belongs to and method name |
| model | [RW] | The model Class that this design belongs to and method name |
Add the specified view to the design doc the definition was made in and create quick access methods in the model.
Calculate and update the checksum of the Design document. Used for ensuring the latest version has been sent to the database.
This will generate a flatterned, ordered array of all the elements of the design document, convert to string then generate an MD5 Hash. This should result in a consisitent Hash accross all platforms.