Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhawksley authored Nov 21, 2024
1 parent 74ea9d8 commit abd7133
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ nav_order: 5

*Joel Hawksley*

* Add rails 8 support
* Add rails 8 support to CI.

*Reegan Viljoen*

Expand Down
2 changes: 1 addition & 1 deletion test/sandbox/config/initializers/assets.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# frozen_string_literal: true

if Rails.version.to_f <= 7.2 then Rails.application.config.assets.precompile += %w[admin.css] end
Rails.application.config.assets.precompile += %w[admin.css] if Rails.version.to_f <= 7.2
3 changes: 2 additions & 1 deletion test/sandbox/test/rendering_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,8 @@ def test_renders_component_with_asset_url

if Rails.version.to_f < 8.0

# Propshaft doesnt allow setting custom hosts so this only works in Rails < 8
# Propshaft doesn't allow setting custom hosts so this only works in Rails < 8
# TODO: Revisit this comment for v4 to see if we need to make any deprecations
component.config.asset_host = nil
assert_match(%r{/assets/application-\w+.css}, render_inline(component).text)

Expand Down

0 comments on commit abd7133

Please sign in to comment.