fixes #18214 - accept `params` as AC::Parameters or Hash
In Rails 5, ActionController::Parameters no longer inherits from Hash and so type checks for params.is_a?(Hash) now return false and should accept either. (Rails commit 14a3bd5.)
Related issues
Refactor #18214: Accept `params` as either ActionController::Parameters or Hash
fixes #18214 - accept `params` as AC::Parameters or Hash
In Rails 5, ActionController::Parameters no longer inherits from Hash
and so type checks for params.is_a?(Hash) now return false and should
accept either. (Rails commit 14a3bd5.)