Class: Language
- Inherits:
-
ActiveRecordShared
- Object
- ActiveRecord::Base
- ActiveRecordShared
- Language
- Defined in:
- app/models/language.rb
Overview
requires
* code ( unique ) * description ( unique and > 3 chars )
Instance Method Summary collapse
-
#is_other? ⇒ Boolean
Returns boolean of comparison true only if key == ‘other’.
-
#to_s ⇒ Object
Returns description.
Instance Method Details
#is_other? ⇒ Boolean
Returns boolean of comparison true only if key == ‘other’
24 25 26 |
# File 'app/models/language.rb', line 24 def is_other? key == 'other' end |
#to_s ⇒ Object
Returns description
18 19 20 |
# File 'app/models/language.rb', line 18 def to_s description end |