Sha256: 6115e2e13711b78a882e5dbfdd516d1463da2bc0b6218cd4ea2862489a5f352a

Contents?: true

Size: 486 Bytes

Versions: 7

Compression:

Stored size: 486 Bytes

Contents

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

    private

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

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

    def review_klass
      MnoEnterprise::AppComment
    end

    def permitted_params
      params.require(:app_comment).permit(:description, :organization_id, :feedback_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_comments_controller.rb
mno-enterprise-api-3.3.3 app/controllers/mno_enterprise/jpi/v1/app_comments_controller.rb
mno-enterprise-api-3.3.2 app/controllers/mno_enterprise/jpi/v1/app_comments_controller.rb
mno-enterprise-api-3.2.1 app/controllers/mno_enterprise/jpi/v1/app_comments_controller.rb
mno-enterprise-api-3.3.1 app/controllers/mno_enterprise/jpi/v1/app_comments_controller.rb
mno-enterprise-api-3.3.0 app/controllers/mno_enterprise/jpi/v1/app_comments_controller.rb
mno-enterprise-api-3.2.0 app/controllers/mno_enterprise/jpi/v1/app_comments_controller.rb