Skip to content
Browse files

Tidy link

  • Loading branch information...
1 parent f2d33fb commit 43e2899f92c3cef45ee8ca85f0e794f0f2b1cd2a @davidjrice davidjrice committed Sep 16, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 app/models/link.rb
View
4 app/models/link.rb
@@ -23,10 +23,8 @@ def self.design
if Couch.client.design_docs.include?("link")
Couch.client.delete_design_doc('link')
- Couch.client.save_design_doc('link', @@design_doc)
- else
- Couch.client.save_design_doc('link', @@design_doc)
end
+ Couch.client.save_design_doc('link', @@design_doc)
define_model_callbacks :save

0 comments on commit 43e2899

Please sign in to comment.
Something went wrong with that request. Please try again.