X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/67017dbca48198e413bd9bb09d70c58f4d837a6a..74543b630eaff87f9c7013a933927fa8785e6497:/app/models/note.rb diff --git a/app/models/note.rb b/app/models/note.rb index 9531e2899..c32b1679b 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -14,6 +14,8 @@ class Note < ActiveRecord::Base validates_inclusion_of :status, :in => ["open", "closed", "hidden"] validate :validate_position + attr_accessible :lat, :lon + after_initialize :set_defaults # Sanity check the latitude and longitude and add an error if it's broken