Commit 689ee67f authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Explicitly transform params to Hash

ActionController::Parameters no longer inherits from Hash
parent 88d7d15e
......@@ -15,7 +15,7 @@ module ApprovalRules
def initialize(target, user, params)
@target = target
@current_user = user
@params = params.with_indifferent_access
@params = params.to_h.with_indifferent_access
batch_load_visible_user_and_group_ids
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment