mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
15 lines
221 B
Ruby
15 lines
221 B
Ruby
class Country < ActiveRecord::Base
|
|
include Versions # version/country_version.rb
|
|
|
|
validates :name, presence: true
|
|
|
|
def to_s
|
|
name
|
|
end
|
|
|
|
class << self
|
|
def estonia
|
|
find_by(iso: 'EE')
|
|
end
|
|
end
|
|
end
|