Skip to content

Commit

Permalink
Fix compatibility with Rails 7.1 and older
Browse files Browse the repository at this point in the history
Fix: #406
  • Loading branch information
byroot committed Oct 6, 2024
1 parent 9c2fbbb commit 3c171a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/active_resource/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ class Railtie < Rails::Railtie
end

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

0 comments on commit 3c171a6

Please sign in to comment.