Class: Joey::WorkHistory
- Defined in:
- lib/joey/work_history.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
Methods inherited from Model
define_properties, find, has_association, hash_populating_accessor, #initialize, recognize?
Constructor Details
This class inherits a constructor from Joey::Model
Instance Method Details
#valid? ⇒ Boolean
11 12 13 14 |
# File 'lib/joey/work_history.rb', line 11 def valid? self.validate self.errors.empty? end |
#validate ⇒ Object
7 8 9 |
# File 'lib/joey/work_history.rb', line 7 def validate valid = true end |