Skip to content

Commit

Permalink
[api] Make sure message_bus_queue is implemented
Browse files Browse the repository at this point in the history
This causes message_bus_queue to raise an exception, if the event
subclass is not implementing it. This will make sure the method get's
implemented by any subclass of Event.
  • Loading branch information
bgeuken committed Oct 5, 2017
1 parent 4778ff6 commit 57c88b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/app/models/event/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ def inherited(subclass)
subclass.create_jobs(*create_jobs)
subclass.receiver_roles(*receiver_roles)
end

def message_bus_queue
raise NotImplementedError
end
end

# just for convenience
Expand Down

0 comments on commit 57c88b4

Please sign in to comment.