From b48c2ade09e9c43d6f7acee02d074a9d54323a70 Mon Sep 17 00:00:00 2001 From: Joel Ambass Date: Thu, 28 Jun 2018 01:17:10 +0200 Subject: respect path_only option when an array is passed into url_for The url_for method is now extracting the path_only option in order to determine if polymorphic_path or polymorphic_url should be called. If the path_only option is not set it will be set to true unless the host option is set. This behaviour is the same as when a Hash or Params object is passed. To support this unifying the code responsible for setting this default value has been extracted into a private method --- actionview/CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'actionview/CHANGELOG.md') diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md index 82add522df..252fce6472 100644 --- a/actionview/CHANGELOG.md +++ b/actionview/CHANGELOG.md @@ -1,3 +1,9 @@ +* Respect the `only_path` option passed to `url_for` when the options are passed in as an array + + Fixes #33237. + + *Joel Ambass* + * Deprecate calling private model methods from view helpers. For example, in methods like `options_from_collection_for_select` -- cgit v1.2.3