Possible patch for polymorphic_path argument errors
Possible fix for #70 (closed). Currently untested
#70 (closed) seems to be associated with the error message "ActionView::Template::Error (Please use symbols for polymorphic route arguments.)", which in turn seems to be related to the patch for this CVE: https://github.com/advisories/GHSA-hjg4-8q5f-x6fm
We first updated to a patched version in this MR: !67 (diffs)
The relevant lines seem to be calling PagesController#page_collection_name
which is an alias for controller_name
which returns a string. This MR patches PagesController, so page_collection_name
returns controller_name.to_sym
instead.