glittergallery/GlitterGallery

View on GitHub
app/controllers/rater_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class RaterController < ApplicationController

  def create
    if user_signed_in?
      obj = Project.find(params[:id])
      obj.rate params[:score].to_f, current_user, params[:dimension]

      render json: true
    else
      render json: false
    end
  end
end