Browse Source

refactor: remove redundant function

pull/1034/head
natdeanlewissoftwire 4 years ago
parent
commit
eb264c188a
  1. 4
      app/models/location.rb

4
app/models/location.rb

@ -433,10 +433,6 @@ class Location < ApplicationRecord
self.confirmed = [postcode, location_admin_district, location_code, units, type_of_unit, mobility_type].all?(&:present?)
end
def confirmed!
update!(confirmed: true)
end
private
PIO = PostcodeService.new

Loading…
Cancel
Save