Class: Race

Inherits:
ActiveRecordShared show all
Defined in:
app/models/race.rb

Overview

requires

* code ( unique ) * description ( unique and > 3 chars )

Instance Method Summary collapse

Instance Method Details

#is_other?Boolean

Returns boolean of comparison true only if key == ‘other’

Returns:

  • (Boolean)


27
28
29
# File 'app/models/race.rb', line 27

def is_other?
	key == 'other'
end

#nameObject

Returns description



21
22
23
# File 'app/models/race.rb', line 21

def name
	description
end

#to_sObject

Returns description



16
17
18
# File 'app/models/race.rb', line 16

def to_s
	description
end