59b31615ed
* Use "create!" when not checking for errors on the result * Use "save!" when not checking the result
7 lines
182 B
Ruby
7 lines
182 B
Ruby
class Conversations::ActivityMessageJob < ApplicationJob
|
|
queue_as :default
|
|
|
|
def perform(conversation, message_params)
|
|
conversation.messages.create!(message_params)
|
|
end
|
|
end
|