Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

zooppa/administrate-field-country

Repository files navigation

Administrate::Field::Country

No Maintenance Intended Build status Code Climate


IMPORTANT NOTICE

This gem is not actively maintained anymore.

If you’re interested in taking over and steward the project moving forward, please get in touch.


A plugin to deal with country selection in Administrate, with the help of country_select gem.

You can customize any country_select options by passing a country_select_options hash in your dashboard configuration (see below).

Usage

Add it to your Gemfile:

gem 'administrate-field-country', '~> 0.3.0'

Run:

$ bundle install

Add to your FooDashboard:

ATTRIBUTE_TYPES = {
  bar: Field::Country.with_options(country_select_options: { priority_countries: %w[US IT GB], include_blank: true })
}.freeze

About

This gem is maintained by Zooppa.

About

🌍 A plugin to deal with country selection in Administrate

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •