Rapide correction
This commit is contained in:
parent
f1e33458fb
commit
0e629648fb
|
@ -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 }
|
||||
|
|
Loading…
Reference in New Issue