Class: Api::V1::MessagesController

Inherits:
ApiController
  • Object
show all
Includes:
Concerns::ActAsApiRequest
Defined in:
lib/templates/chat/messages_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



8
9
10
# File 'lib/templates/chat/messages_controller.rb', line 8

def create
  @message = ChatService.create_message(chat, message_params[:content], current_user)
end