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