Sha256: 76a7bf0461ae714d5c2126972944260322b8e77506c36cbdc18afc2c24c498ab

Contents?: true

Size: 491 Bytes

Versions: 7

Compression:

Stored size: 491 Bytes

Contents

module MnoEnterprise
  class Jpi::V1::AppAnswersController < Jpi::V1::AppReviewsController

    private

    def scope_app_reviews
      @app_reviews.where(question_id: params[:question_id])
    end

    def after_save
      #do nothing because answers doesn't affect on app rating
    end

    def review_klass
      MnoEnterprise::AppAnswer
    end

    def permitted_params
      params.require(:app_answer).permit(:rating, :description, :organization_id, :question_id)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mno-enterprise-api-3.4.0 app/controllers/mno_enterprise/jpi/v1/app_answers_controller.rb
mno-enterprise-api-3.3.3 app/controllers/mno_enterprise/jpi/v1/app_answers_controller.rb
mno-enterprise-api-3.3.2 app/controllers/mno_enterprise/jpi/v1/app_answers_controller.rb
mno-enterprise-api-3.2.1 app/controllers/mno_enterprise/jpi/v1/app_answers_controller.rb
mno-enterprise-api-3.3.1 app/controllers/mno_enterprise/jpi/v1/app_answers_controller.rb
mno-enterprise-api-3.3.0 app/controllers/mno_enterprise/jpi/v1/app_answers_controller.rb
mno-enterprise-api-3.2.0 app/controllers/mno_enterprise/jpi/v1/app_answers_controller.rb