Class: CountryPhone
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- CountryPhone
- Defined in:
- app/models/country_phone.rb
Overview
Schema Information
Table name: country_phones
id :integer not null, primary key
title :string(255)
value :string(255)
sort_order :integer default(1)
created_at :datetime
updated_at :datetime
Class Method Summary collapse
Class Method Details
.localized_first ⇒ Object
21 22 23 |
# File 'app/models/country_phone.rb', line 21 def localized_first all.partition { |p| p.default_locale && (p.default_locale.to_sym == I18n.locale) }.flatten end |