Skip to content

Commit

Permalink
Stop rubocop from messing with our code
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJackson-Oslo committed Jan 30, 2024
1 parent ed0e3a5 commit 1e4138f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/tasks/precompile_assets_once.rake
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# frozen_string_literal: true

task "precompile_assets_once" => :environment do
# rubocop:disable Rails/RakeEnvironment
# Rubocop Rails/RakeEnvironment breaks this function, as it needs to run
# before the environment is loaded.
task "precompile_assets_once" do
next if ENV["TEST_ASSET_PRECOMPILE_DONE"]

p "Compiling assets..."
Expand All @@ -11,3 +14,4 @@ task "precompile_assets_once" => :environment do

p "Assets compiled"
end
# rubocop:enable Rails/RakeEnvironment

0 comments on commit 1e4138f

Please sign in to comment.