app/models/user.rb
# ====Params
# None
# ====Returns
# Array of Records
# ==== Method
# Iterates through all collection records and returns an Array
# containing only the records for which the user has not attached a completed review.
Params
None
Returns
Array of Records
Method
Iterates through all collection records and returns an Array
containing only the records for which the user has not attached a completed review.
Params None Returns Array of Records Method Iterates through all collection records and returns an Array containing only the records for which the user has not attached a completed review .
def records_not_reviewed
    application_mode = self.mdq_user? ? :mdq_mode : :arc_mode
    Collection.all_records(application_mode).select do |record|
      (record.reviews.select do |review|
        (review.user == self && review.review_state == 1)
      end).empty?
    end
  end
def records_not_reviewed application_mode = self . mdq_user? ? :mdq_mode : :arc_mode Collection . all_records ( application_mode ) . select do | record | ( record . reviews . select do | review | ( review . user == self && review . review_state == 1 ) end ) . empty? end end
Params
None
Returns
Array of Records
 Method
Iterates through all collection records and returns an Array
containing only the records for which the user has not attached a completed review.
Params None Returns Array of Records Method Iterates through all collection records and returns an Array containing only the records for which the user has not attached a completed review .