Update venue country name for Countries 4.2

Resolves:

    DEPRECATION WARNING: The Country#name method has been deprecated.
    Please use Country#iso_short_name instead or refer to the README
    file for more information on this change.

Details: https://github.com/countries/countries/blob/v4.2.2/README.markdown#upgrading-to-42-and-5x
This commit is contained in:
Andrew Kvalheim 2022-03-06 22:50:40 -08:00
parent a675399eb8
commit a179609773

View file

@ -21,7 +21,7 @@ class Venue < ApplicationRecord
def country_name
name = ISO3166::Country[country]
name&.name
name&.iso_short_name
end
def location?