-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check if
root_path
is defined with #respond_to?
instead of `#pres…
…ent` (#5022) When an application does not define a `root`, the method will be undefined instead of returning a falsey value. This commit also includes a new test with fake objects that mimic this behavior. Related resources: * 1aab449#diff-c1be825bdb5f3160081e41432f83d0d7R278 * #5021
- Loading branch information
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters