Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
reesericci committed Jan 18, 2024
1 parent 6d4f838 commit 399f166
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/models/record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def self.dnsimple_to_record(obj)
domain = cap[3]
domain_obj = Domain.find_by(host: domain)

puts domain_obj
Record.new(
_id: obj.id,
_persisted: true,
Expand All @@ -92,7 +91,7 @@ def save

broadcast_replace_to("records:main", partial: "records/record")
Rails.cache.delete("records")
domain.update(updated_at: Time.now)
domain.update!(updated_at: Time.now) # standard:disable all
end

def persisted?
Expand All @@ -109,7 +108,7 @@ def destroy!
end

def self.destroy_all_host!(host)
for r in where_host(host)
where_host(host).each do |r|
r.destroy!
end
end
Expand Down

0 comments on commit 399f166

Please sign in to comment.