Skip to content

Commit 3c171a6

Browse files
committed
Fix compatibility with Rails 7.1 and older
Fix: #406
1 parent 9c2fbbb commit 3c171a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/active_resource/railtie.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ class Railtie < Rails::Railtie
2323
end
2424

2525
initializer "active_resource.deprecator" do |app|
26-
app.deprecators[:active_resource] = ActiveResource.deprecator
26+
if app.respond_to?(:deprecators)
27+
app.deprecators[:active_resource] = ActiveResource.deprecator
28+
end
2729
end
2830
end
2931
end

0 commit comments

Comments
 (0)