Rapide correction

This commit is contained in:
echarp 2014-09-21 14:36:36 +02:00
parent f1e33458fb
commit 0e629648fb
1 changed files with 2 additions and 2 deletions

View File

@ -17,8 +17,8 @@ class Event < ActiveRecord::Base
validates :submitter, email: true
geocoded_by :full_address, lookup: :nominatim
after_validation :geocode, if: -> (obj) { obj.address_changed? }
# after_validation :geocode
# after_validation :geocode, if: -> (obj) { obj.address_changed? }
after_validation :geocode
scope :moderated, -> { where moderated: true }
scope :unmoderated, -> { where moderated: false }