051871a3cd
* Chore: Code Cleanup in API controllers * Remove unnecessary scoping for accounts controller
16 lines
405 B
Ruby
16 lines
405 B
Ruby
class Api::V1::Accounts::Conversations::MessagesController < Api::V1::Accounts::Conversations::BaseController
|
|
def index
|
|
@messages = message_finder.perform
|
|
end
|
|
|
|
def create
|
|
mb = Messages::Outgoing::NormalBuilder.new(current_user, @conversation, params)
|
|
@message = mb.perform
|
|
end
|
|
|
|
private
|
|
|
|
def message_finder
|
|
@message_finder ||= MessageFinder.new(@conversation, params)
|
|
end
|
|
end
|