Skip to content

Commit

Permalink
rubocop fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KludgeKML committed Aug 23, 2023
1 parent c558028 commit 1a98c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/subscriber_list_audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class SubscriberListAudit < ApplicationRecord
belongs_to :subscriber_list

def self.increment_count(subscriber_list)
record = SubscriberListAudit.find_or_create_by(subscriber_list:)
record = SubscriberListAudit.find_or_create_by!(subscriber_list:)
record.reference_count += 1
record.save!
end
Expand Down

0 comments on commit 1a98c0a

Please sign in to comment.