Skip to content

Commit

Permalink
Update documentation to mention 1.x syntax compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
scudco committed Aug 11, 2014
1 parent 3fb6354 commit 48f5283
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions UPGRADING.md
Expand Up @@ -46,12 +46,24 @@ to
country_select(:user, :country_code, priority_countries: ["GB","FR"])
```

### A note on 1.x Syntax

In order to seamlessly support popular libraries dependent on
`country_select`, specifically `formatstic` and `simple_form`, 1.x
priority syntax is still supported, but will probably be removed in the
next major release (i.e., 3.0). We'll be working with `simple_form` and
`formtastic` maintainers to transition away from the old 1.x syntax.

## You can choose to only display a chosen set of countries

```ruby
country_select(:user, :country_code, only: ["LV","SG"])
```

```ruby
country_select(:user, :country_code, except: ["US","GB"])
```

## Ruby 1.9+

`country_select` will no longer be tested in Ruby `< 1.9`.

0 comments on commit 48f5283

Please sign in to comment.