Class: Katello::Event
- Defined in:
- app/models/katello/event.rb
Instance Method Summary collapse
Methods inherited from Model
Instance Method Details
#validate_event_type ⇒ Object
9 10 11 12 13 14 |
# File 'app/models/katello/event.rb', line 9 def validate_event_type unless EventQueue.supported_event_types.include?(self.event_type) errors.add(:event_type, _("Unsupported event type %{type}. Supported: %{types}") % {:type => self.event_type, :types => EventQueue.supported_event_types.join(',')}) end end |