app/models/user_publication_review.rb
# If a steering committee member creates or updates their review of a publication
# after the steering committee secretary has marked it as SC Approved
# then send the Steering Committee secretary an email with that review and link to publication.
If a steering committee member creates or updates their review of a publication
after the steering committee secretary has marked it as SC Approved
then send the Steering Committee secretary an email with that review and link to publication.
If a steering committee member creates or updates their review of a publication after the steering committee secretary has marked it as SC Approved then send the Steering Committee secretary an email with that review and link to publication .
def notify_sc_secretary
    return unless EMAILS_ENABLED && publication && %w(nominated submitted published).include?(publication.status)
    return if changes[:comment].blank? && changes[:writing_group_nomination].blank? && changes[:status].blank?
    User.sc_secretaries.each do |secretary|
      UserMailer.review_updated(self, secretary).deliver_now
    end
  end
def notify_sc_secretary return unless EMAILS_ENABLED && publication && %w( nominated submitted published ) . include? ( publication . status ) return if changes [ :comment ] . blank? && changes [ :writing_group_nomination ] . blank? && changes [ :status ] . blank? User . sc_secretaries . each do | secretary | UserMailer . review_updated ( self , secretary ) . deliver_now end end
If a steering committee member creates or updates their review of a publication
after the steering committee secretary has marked it as SC Approved
then send the Steering Committee secretary an email with that review and link to publication.
If a steering committee member creates or updates their review of a publication after the steering committee secretary has marked it as SC Approved then send the Steering Committee secretary an email with that review and link to publication .