Skip to content

Commit

Permalink
Add Trestle deprecator to application deprecators
Browse files Browse the repository at this point in the history
  • Loading branch information
spohlenz committed May 27, 2024
1 parent b77b421 commit 5d29383
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/trestle/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ class Engine < ::Rails::Engine
end
end

initializer "trestle.deprecator" do |app|
app.deprecators[:trestle] = Trestle.deprecator
end

initializer "trestle.draper" do |app|
if defined?(Draper)
Draper::CollectionDecorator.delegate :current_page, :total_pages, :limit_value, :entry_name, :total_count, :offset_value, :last_page?
Expand Down

0 comments on commit 5d29383

Please sign in to comment.