Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Rails 8.0 routes #470

Merged
merged 1 commit into from
Aug 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
zealot128 marked this conversation as resolved.
Show resolved Hide resolved
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