Skip to content

Commit

Permalink
Remove outdated comments
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Giddins <[email protected]>
  • Loading branch information
segiddins committed Oct 13, 2024
1 parent 8f3bd85 commit 32f18c6
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 52 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ gem "faraday-multipart", "~> 1.0"
gem "timescaledb", "~> 0.3"

# Admin dashboard
# github needed until https://github.com/avo-hq/avo/pull/3215 is released
gem "avo", "~> 3.13"
gem "pagy", "~> 8.4"
gem "view_component", "~> 3.14.0"
Expand Down
5 changes: 0 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
require File.expand_path("config/application", __dir__)
Gemcutter::Application.load_tasks

# TODO: remove this when we point back to a release version of Avo
namespace :assets do
task precompile: "avo:build-assets"
end
4 changes: 0 additions & 4 deletions config/initializers/avo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,6 @@
Avo::BaseResource.prepend Avo::Resources::Concerns::AvoAuditableResource
Avo::Concerns::HasItems.prepend Avo::Resources::Concerns::AvoAuditableResource::HasItemsIncludeComment

# Avo::ApplicationController.content_security_policy do |policy|
# policy.style_src :self, "https://fonts.googleapis.com", :unsafe_inline
# end

# Fix for https://github.com/rails/rails/issues/49783
Avo::Views::ResourceEditComponent.class_eval do
def field_name(object_name, *, **)
Expand Down
37 changes: 0 additions & 37 deletions test/policies/admin/avo_policies_test.rb

This file was deleted.

5 changes: 0 additions & 5 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@
]
)
WebMock.globally_stub_request(:after_local_stubs) do |request|
# avo_request_pattern = WebMock::RequestPattern.new(:post, "https://avohq.io/api/v1/licenses/check")
# if avo_request_pattern.matches?(request)
# { status: 200, body: { id: :pro, valid: true, payload: {} }.to_json,
# headers: { "Content-Type" => "application/json" } }
# end

if WebMock::RequestPattern.new(:get, Addressable::Template.new("https://secure.gravatar.com/avatar/{hash}.png?d=404&r=PG&s={size}")).matches?(request)
{ status: 404, body: "", headers: {} }
Expand Down

0 comments on commit 32f18c6

Please sign in to comment.