Skip to content

Commit

Permalink
avoid mutation of user args (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-mcdonald authored Aug 17, 2020
1 parent 332fbd2 commit 7c144ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rolify/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def find_roles(role_name = nil, user = nil)

def with_role(role_name, user = nil)
if role_name.is_a? Array
role_name.map!(&:to_s)
role_name = role_name.map(&:to_s)
else
role_name = role_name.to_s
end
Expand Down

0 comments on commit 7c144ad

Please sign in to comment.