lib/couch/actions/routes.rb in couch-0.1.0 vs lib/couch/actions/routes.rb in couch-0.1.1
- old
+ new
@@ -24,18 +24,18 @@
end
protected
def attachment_url(file)
- File.join(database, '_design', File.basename(database), File.basename(file))
+ File.join(Couch.database, '_design', File.basename(Couch.database), File.basename(file))
end
def list_url(list, view)
- File.join(database, '_design', File.basename(database), '_list', File.basename(view), File.basename(list, '.js'))
+ File.join(Couch.database, '_design', File.basename(Couch.database), '_list', File.basename(view), File.basename(list, '.js'))
end
def show_url(show, id = '/')
- File.join(database, '_design', File.basename(database), '_show', File.basename(show, '.js'), id)
+ File.join(Couch.database, '_design', File.basename(Couch.database), '_show', File.basename(show, '.js'), id)
end
end
end
end