Class: RefusalReason
- Inherits:
-
ActiveRecordShared
- Object
- ActiveRecord::Base
- ActiveRecordShared
- RefusalReason
- Defined in:
- app/models/refusal_reason.rb
Overview
requires
* 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’
19 20 21 |
# File 'app/models/refusal_reason.rb', line 19 def is_other? key == 'other' end |
#to_s ⇒ Object
Returns description
13 14 15 |
# File 'app/models/refusal_reason.rb', line 13 def to_s description end |