Move design_doc_* attributes into DesignDoc mixin

This commit is contained in:
Brian Candler 2009-03-27 20:22:10 +00:00 committed by Matt Aimonetti
parent 159a761ad9
commit d672d5f8d4
2 changed files with 6 additions and 6 deletions

View file

@ -9,6 +9,12 @@ module CouchRest
end
module ClassMethods
attr_accessor :design_doc, :design_doc_slug_cache, :design_doc_fresh
def design_doc
@design_doc ||= Design.new(default_design_doc)
end
def design_doc_id
"_design/#{design_doc_slug}"
end

View file

@ -7,12 +7,6 @@ module CouchRest
end
module ClassMethods
attr_accessor :design_doc, :design_doc_slug_cache, :design_doc_fresh
def design_doc
@design_doc ||= Design.new(default_design_doc)
end
# Define a CouchDB view. The name of the view will be the concatenation
# of <tt>by</tt> and the keys joined by <tt>_and_</tt>
#