app/models/applications/application_mentor.rb
# Checks to see if the +send_invite_email_now+ attribute is set to true, and invokes the deliver_invite_email method if necessary.
Checks to see if the +send_invite_email_now+ attribute is set to true, and invokes the deliver_invite_email method if necessary.
Checks to see if the + send_invite_email_now + attribute is set to true and invokes the deliver_invite_email method if necessary .
def send_invite_email_if_needed
      if send_invite_email_now == "1" && application_for_offering.page_passes_validations?(application_for_offering.current_page.offering_page)
        self.send_invite_email_now = false
        deliver_invite_email    
      end
  end
def send_invite_email_if_needed if send_invite_email_now == "1" && application_for_offering . page_passes_validations? ( application_for_offering . current_page . offering_page ) self . send_invite_email_now = false deliver_invite_email end end
Checks to see if the +send_invite_email_now+ attribute is set to true, and invokes the deliver_invite_email method if necessary.
Checks to see if the + send_invite_email_now + attribute is set to true and invokes the deliver_invite_email method if necessary .