X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dbe165bbb3d6eda37d9579f1ac767599f9055607..69c1f6d1862aad00f80a0d2e32dbbe70aba65649:/app/models/note.rb diff --git a/app/models/note.rb b/app/models/note.rb index 31056be49..73207af0f 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -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