Sha256: a8386f747ede57e41e754b33d1dbea654ed1ba30739a9a868363935c71d6a92f
Contents?: true
Size: 491 Bytes
Versions: 1
Compression:
Stored size: 491 Bytes
Contents
# frozen_string_literal: true module Account class VotesController < Account::BaseController respond_to :js def create params[:rate] ||= {} TranslationCms::Api::Vote.create_from_params(params[:order_id], current_account.token, vote_params) respond_with(nil, location: account_order_path(params[:order_id])) end private def vote_params params.require(:rate).permit(:quality, :format, :grammar, :plagiarism, :instructions) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/controllers/account/votes_controller.rb |