Class: Katello::Event

Inherits:
Model
  • Object
show all
Defined in:
app/models/katello/event.rb

Instance Method Summary collapse

Methods inherited from Model

#destroy!

Instance Method Details

#validate_event_typeObject



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