-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
fix: move default_url_options to controller extension #2780
fix: move default_url_options to controller extension #2780
Conversation
Code Climate has analyzed commit e65e948 and detected 0 issues on this pull request. View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a refactor suggestion (untested)
Co-authored-by: Paul Bob <69730720+Paul-Bob@users.noreply.github.com>
@@ -19,7 +19,7 @@ def initialize(label: nil, path: nil, active: :inclusive, target: nil, data: {}, | |||
|
|||
def is_external? | |||
# If the path contains the scheme, check if it includes the root path or not | |||
return !path.include?(Avo.mount_path) if URI(path).scheme.present? | |||
return !path.include?(helpers.mount_path) if URI(path).scheme.present? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a little bit related.
This PR has been merged into Please check the release guide for more information. |
Description
Fixes the initialization process for all controllers.
Blocked by rails/rails#51933 rails/rails#51910
Related PRs
Checklist: