Move design_doc_* attributes into DesignDoc mixin
This commit is contained in:
parent
159a761ad9
commit
d672d5f8d4
|
@ -9,6 +9,12 @@ module CouchRest
|
||||||
end
|
end
|
||||||
|
|
||||||
module ClassMethods
|
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
|
def design_doc_id
|
||||||
"_design/#{design_doc_slug}"
|
"_design/#{design_doc_slug}"
|
||||||
end
|
end
|
||||||
|
|
|
@ -7,12 +7,6 @@ module CouchRest
|
||||||
end
|
end
|
||||||
|
|
||||||
module ClassMethods
|
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
|
# 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>
|
# of <tt>by</tt> and the keys joined by <tt>_and_</tt>
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue