Skip to content
Snippets Groups Projects
salmon_controller.rb 276 B
Newer Older
  • Learn to ignore specific revisions
  • class Api::SalmonController < ApiController
    
      before_action :set_account
    
      def update
        ProcessInteractionService.new.(request.body.read, @account)
        render nothing: true, status: 201
      end
    
      private
    
      def set_account
        @account = Account.find(params[:id])
      end
    end