Class: Account::VotesController

Inherits:
BaseController show all
Defined in:
app/controllers/account/votes_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

caches_page_with_cache_marker, #raise_not_found!

Instance Method Details

#createObject



7
8
9
10
11
12
13
# File 'app/controllers/account/votes_controller.rb', line 7

def create
  params[:rate] ||= {}

  TranslationCms::Api::Vote.create_from_params(params[:order_id], .token, vote_params)

  respond_with(nil, location: (params[:order_id]))
end