Class: GeoCountry
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- GeoCountry
- Defined in:
- app/models/geo_country.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.countries_with_us_first ⇒ Object
13 14 15 16 17 18 |
# File 'app/models/geo_country.rb', line 13 def countries_with_us_first countries = where('iso_code_2 <> ? and display = ?', 'US', true) countries.unshift(where('iso_code_2 = ?', 'US').first) countries end |