Skip to content

Commit

Permalink
Register global_id deprecator in the app
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Aug 30, 2023
1 parent 18fd60c commit 98e02be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/global_id/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ class Railtie < Rails::Railtie # :nodoc:
send :extend, GlobalID::FixtureSet
end
end

initializer "web_console.deprecator" do |app|
app.deprecators[:global_id] = GlobalID.deprecator if app.respond_to?(:deprecators)
end
end
end

Expand Down

0 comments on commit 98e02be

Please sign in to comment.