Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 7.1 support #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/localized_country_select.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module FormOptionsHelper
# Country codes listed as an array of symbols in +priority_countries+ argument will be listed first
# TODO : Implement pseudo-named args with a hash, not the "somebody said PHP?" multiple args sillines
def localized_country_select(object, method, priority_countries = nil, options = {}, html_options = {})
tag = CountrySelect.new(object, method, self, options)
tag = CountrySelect.new(object, method, self, LocalizedCountrySelect::localized_countries_array(options), :last, :first, options, html_options)

tag.to_localized_country_select_tag(priority_countries, options, html_options)
end
Expand Down Expand Up @@ -102,7 +102,7 @@ def to_localized_country_select_tag(priority_countries, options, html_options)
end
end

class CountrySelect < Tags::Base
class CountrySelect < Tags::CollectionSelect
include ToCountrySelectTag
end

Expand Down