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

Commit

Permalink
Fix missing "do" and add syntax_suggest
Browse files Browse the repository at this point in the history
  • Loading branch information
reesericci committed Jan 18, 2024
1 parent 55aace0 commit ae09eed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,5 @@ gem "activejob-status", "~> 1.0"
gem "standard", "~> 1.33"

gem "standard-rails", "~> 1.0"

gem "syntax_suggest", "~> 2.0"
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ GEM
stimulus-rails (1.3.0)
railties (>= 6.0.0)
stringio (3.1.0)
syntax_suggest (2.0.0)
syntax_tree (6.2.0)
prettier_print (>= 1.2.0)
tailwindcss-rails (2.1.0-x86_64-darwin)
Expand Down Expand Up @@ -470,6 +471,7 @@ DEPENDENCIES
standard (~> 1.33)
standard-rails (~> 1.0)
stimulus-rails
syntax_suggest (~> 2.0)
tailwindcss-rails (~> 2.1)
tapioca
turbo-rails
Expand Down
6 changes: 4 additions & 2 deletions app/models/record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def self.filter_dnsimple_host(host, domains)
domain = Domain.find_by(host: host)
Rails.cache.fetch([domain, "records"], expires_in: 1.week) do
records = []
domains.each |r|
domains.each do |r|
if r.domain_id == domain.id
records.push(r)
end
Expand Down Expand Up @@ -130,9 +130,10 @@ def self.all
records.push(record)
end
end
end
end

records

end
end

Expand Down Expand Up @@ -259,4 +260,5 @@ def destroy_record
@_persisted = false
true
end

end

0 comments on commit ae09eed

Please sign in to comment.