maestrano/mno-enterprise

View on GitHub
core/app/models/mno_enterprise/app_answer.rb

Summary

Maintainability
A
0 mins
Test Coverage
module MnoEnterprise
  # List All Answers
  # MnoEnterprise::AppAnswer.all
  # Create an AppAnswer
  # MnoEnterprise::AppAnswer.create(description: "This is my answer", organization_id: 3, user_id: 9, app_id: 43, question_id: 1)

  # An AppAnswer belong to an AppQuestion
  class AppAnswer < AppReview
    attributes :question_id

    belongs_to :question, class_name: 'AppQuestion', foreign_key: :question_id
  end
end