Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tapajos opened this issue Jul 2, 2010 · 0 comments

Comments

@tapajos
Copy link
Member

tapajos commented Jul 2, 2010

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant