Skip to content

Commit

Permalink
Fix kwargs and deprecation warnings in Rails 8.0 (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
zealot128 authored Aug 24, 2024
1 parent 7561a9e commit bc0470d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/trestle/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Engine < ::Rails::Engine
initializer "trestle.automount" do |app|
if Trestle.config.automount
app.routes.prepend do
mount Trestle::Engine => Trestle.config.path
mount Trestle::Engine, at: Trestle.config.path
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/trestle/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def routes
}

Proc.new do
public_send(resource_method, resource_name, resource_options) do
public_send(resource_method, resource_name, **resource_options) do
admin.additional_routes.each do |block|
instance_exec(&block)
end
Expand Down

0 comments on commit bc0470d

Please sign in to comment.