app/models/ticket.rb
# Process this ticket and return the status.
Process this ticket and return the status.
Process this ticket and return the status .
def process
    self.ticket_kind.is_access_code ? self.register_access_code : self.register_discount_code
    if self.registered_code?
      self.send_email
    end
    return self.status
  end
def process self . ticket_kind . is_access_code ? self . register_access_code : self . register_discount_code if self . registered_code? self . send_email end return self . status end
Process this ticket and return the status.
Process this ticket and return the status .