lib/zendesk2/ticket_comment.rb in zendesk2-1.9.0 vs lib/zendesk2/ticket_comment.rb in zendesk2-1.10.0
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
class Zendesk2::TicketComment < Zendesk2::AuditEvent
# @return [Integer] Automatically assigned when creating events
identity :id, type: :integer
# @return [String] The actual comment made by the author
@@ -17,8 +18,8 @@
# @return [Zendesk2::User] event author
def author
requires :author_id
- self.cistern.users.get(self.author_id)
+ cistern.users.get(author_id)
end
end