Class: Cats::Core::Beneficiary
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Cats::Core::Beneficiary
- Defined in:
- app/models/cats/core/beneficiary.rb
Constant Summary collapse
Instance Method Summary collapse
Instance Method Details
#validate_fdp ⇒ Object
[View source]
19 20 21 22 23 |
# File 'app/models/cats/core/beneficiary.rb', line 19 def validate_fdp return unless fdp errors.add(:fdp, "should be a valid distribution point.") unless fdp.location_type == Location::FDP end |