couchrest / couchrest_extended_document

Extends CouchRest with helpers and such
Apache License 2.0
24 stars 5 forks source link

_design/[Document] revision would be updated every-time database is accessed #7

Open tapajos opened 14 years ago

tapajos commented 14 years ago

Issue from: http://github.com/couchrest/couchrest/issues#issue/16

i have a CouchRest::ExtendedDocument of this form

module modd class device < CouchRest::ExtendedDocument attr_accessor :device_id property :device_id

view_by :device_id

end end

on the database a design document would be stored as "_design/modd::device", its revision will be updated on every access to the database even for simple query like device.all.count

i've tried putting the class outside of the module and it works fine, "_design/device" doesn't get updated on every access to the database