inherited_resources icon indicating copy to clipboard operation
inherited_resources copied to clipboard

Method missing crash due to duck typing in UrlHelper

Open ce07c3 opened this issue 5 years ago • 0 comments

arg.respond_to?(:permitted?) ? arg.to_h : arg

https://github.com/activeadmin/inherited_resources/blob/master/lib/inherited_resources/url_helpers.rb#L200

If resource passed in has permitted? but not to_h method, this will crash.

ce07c3 avatar Mar 04 '20 13:03 ce07c3