{"action":"closed","issue":{"url":"https://api.github.com/repos/stefanpenner/country_select/issues/154","repository_url":"https://api.github.com/repos/stefanpenner/country_select","labels_url":"https://api.github.com/repos/stefanpenner/country_select/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/stefanpenner/country_select/issues/154/comments","events_url":"https://api.github.com/repos/stefanpenner/country_select/issues/154/events","html_url":"https://github.com/stefanpenner/country_select/issues/154","id":348580293,"node_id":"MDU6SXNzdWUzNDg1ODAyOTM=","number":154,"title":"Collection along with priority not working for country_select v3.1.1","user":{"login":"meenakshikumari","id":9154721,"node_id":"MDQ6VXNlcjkxNTQ3MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/9154721?v=4","gravatar_id":"","url":"https://api.github.com/users/meenakshikumari","html_url":"https://github.com/meenakshikumari","followers_url":"https://api.github.com/users/meenakshikumari/followers","following_url":"https://api.github.com/users/meenakshikumari/following{/other_user}","gists_url":"https://api.github.com/users/meenakshikumari/gists{/gist_id}","starred_url":"https://api.github.com/users/meenakshikumari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meenakshikumari/subscriptions","organizations_url":"https://api.github.com/users/meenakshikumari/orgs","repos_url":"https://api.github.com/users/meenakshikumari/repos","events_url":"https://api.github.com/users/meenakshikumari/events{/privacy}","received_events_url":"https://api.github.com/users/meenakshikumari/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-08T05:29:22Z","updated_at":"2018-08-09T22:15:44Z","closed_at":"2018-08-09T22:15:44Z","author_association":"NONE","body":"I have upgraded versions of:\r\nrails from 4.1.10 to 5.2.0 \r\nruby from 2.1.0 to 2.5.1\r\ncountry-select from 1.2.0 to 3.1.1\r\ndatabase from mongodb to postgres.\r\n\r\nIn my previous code, a simple form drop down containing collections `VALID_COUNTRIES = CountrySelect::COUNTRIES_FOR_SELECT.collect(&:titleize)` of countries with priority given to Australia and New Zealand.\r\nPrevious code: `a.input :country, input_html: { id: \"country_#{a.object.type.underscore.gsub(' ', '_')}\" }, priority: [\"\", \"Australia\", \"New Zealand\" ]`\r\n\r\n Now in my upgraded code this code didn't worked (because of country select gem update). Now i'm using collections `VALID_COUNTRIES = ISO3166::Country.all.collect(&:name).sort` only countries are displayed in sorted order, but priority are not working."}}
{"actor":{"display_login":"scudco"}}