app/models/plan.rb
# determines if the plan is reviewable by the specified user
#
# user_id - The Integer id for the user
#
# Returns Boolean
determines if the plan is reviewable by the specified user
user_id - The Integer id for the user

Returns Boolean
determines if the plan is reviewable by the specified user user_id - The Integer id for the user Returns Boolean
def reviewable_by?(user_id)
    reviewer = User.find(user_id)
    feedback_requested? &&
      reviewer.present? &&
      reviewer.org_id == owner&.org_id &&
      reviewer.can_review_plans?
  end
def reviewable_by? ( user_id ) reviewer = User . find ( user_id ) feedback_requested? && reviewer . present? && reviewer . org_id == owner &. org_id && reviewer . can_review_plans? end
determines if the plan is reviewable by the specified user
user_id - The Integer id for the user
determines if the plan is reviewable by the specified user user_id - The Integer id for the user
user_id