Sha256: fc51d667bdcb1a8ea3723a4e32eca61cbb52d4573dcd41543873ce62904ccc42

Contents?: true

Size: 305 Bytes

Versions: 7

Compression:

Stored size: 305 Bytes

Contents

module MnoEnterprise
  # Create an AppQuestion
  # MnoEnterprise::AppQuestion.create(description: "This is my question", organization_id: 3, user_id: 9, app_id: 43)
  class AppQuestion < AppReview
    belongs_to :app

    scope :search, ->(search) { where("description.like" => "%#{search}%") }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mno-enterprise-core-3.4.0 app/models/mno_enterprise/app_question.rb
mno-enterprise-core-3.3.3 app/models/mno_enterprise/app_question.rb
mno-enterprise-core-3.3.2 app/models/mno_enterprise/app_question.rb
mno-enterprise-core-3.2.1 app/models/mno_enterprise/app_question.rb
mno-enterprise-core-3.3.1 app/models/mno_enterprise/app_question.rb
mno-enterprise-core-3.3.0 app/models/mno_enterprise/app_question.rb
mno-enterprise-core-3.2.0 app/models/mno_enterprise/app_question.rb