]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/note.rb
Added authorization + issues dashboard
[rails.git] / app / models / note.rb
index 31056be49ca090733b483a09ddeb1ac0f4ecb805..73207af0ff22f4e0a16d26f2b8cfdc3a95df0208 100644 (file)
@@ -59,6 +59,6 @@ class Note < ActiveRecord::Base
 
   # Fill in default values for new notes
   def set_defaults
-    self.status = "open" unless self.attribute_present?(:status)
+    self.status = "open" unless attribute_present?(:status)
   end
 end