mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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:
parent
a675399eb8
commit
a179609773
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ class Venue < ApplicationRecord
|
|||
|
||||
def country_name
|
||||
name = ISO3166::Country[country]
|
||||
name&.name
|
||||
name&.iso_short_name
|
||||
end
|
||||
|
||||
def location?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue