Class: State
- Inherits:
-
ActiveRecordShared
- Object
- ActiveRecord::Base
- ActiveRecordShared
- State
- Defined in:
- app/models/state.rb
Overview
Currently just US states + DC
Class Method Summary collapse
-
.abbreviations ⇒ Object
Returns an array of state abbreviations.
Class Method Details
.abbreviations ⇒ Object
Returns an array of state abbreviations.
21 22 23 |
# File 'app/models/state.rb', line 21 def self.abbreviations @@abbreviations ||= all.collect(&:code) end |