Skip to content

Commit 6fab3a9

Browse files
committed
Enforce from_params receives HashWithIndifferentAccess
1 parent 0e29a82 commit 6fab3a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/messages/base_message.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def to_param_hash(exclude: [], fields: [])
6262
end
6363

6464
def self.from_params(params, to_array_keys, fields: [])
65-
opts = params.dup
65+
opts = params.with_indifferent_access
6666
to_array_keys.each do |attribute|
6767
to_array! opts, attribute
6868
end

0 commit comments

Comments
 (0)