carmen-ruby / carmen-rails

NOT ACTIVELY MAINTAINED Rails adapter for Carmen (provides country_select and subregion_select)
MIT License
215 stars 159 forks source link

allows to set multiple groups of priority regions #14

Open paxer opened 12 years ago

paxer commented 12 years ago

This changes allows to set several groups of priority regions by passing two dimensional array without breaking current API. So, for example by passing :priority attribute as a two dimensional array like [ [ 'AU' , 'NZ' ], [ 'US' , 'CA'] ] will generate a two groups of priority countries separated by ---------- . Current API with one dimensional array will work as well.