Created
March 28, 2016 23:25
-
-
Save perezpaya/e6c96a0212363fc25c82 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CompanyMarketUpdatesController < ApplicationController | |
def update | |
CompanyMarketUpdatesJob.perform_later(update_params) | |
render json: {sucess: true}, status: 202 | |
end | |
private | |
def update_params | |
params.extract!(:stock_symbol, :stock_volume, :stock_price) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment