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
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
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