Skip to content

Commit

Permalink
Fix failing to set app.deprecators in Rails <= 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibuya committed Jul 6, 2024
1 parent c531c07 commit 8761240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/carrierwave.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Railtie < Rails::Railtie
end

initializer "carrierwave.deprecator" do |app|
app.deprecators[:carrierwave] = CarrierWave.deprecator
app.deprecators[:carrierwave] = CarrierWave.deprecator if app.respond_to?(:deprecators)
end

config.before_eager_load do
Expand Down

0 comments on commit 8761240

Please sign in to comment.