Commit a6c9ad699ac902ab68ee1ef4a8f84b7f5bc22cc7
1 parent
05f9e65b
Exists in
master
fix: scim attribute mapping from controller
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/controllers/scim_rails/scim_users_controller.rb
@@ -97,7 +97,7 @@ module ScimRails | @@ -97,7 +97,7 @@ module ScimRails | ||
97 | end | 97 | end |
98 | 98 | ||
99 | def find_value_for(attribute) | 99 | def find_value_for(attribute) |
100 | - params.dig(*path_for(attribute.to_s)) | 100 | + params.dig(*path_for(attribute).map{|x| x.to_s}) rescue nil |
101 | end | 101 | end |
102 | 102 | ||
103 | # `path_for` is a recursive method used to find the "path" for | 103 | # `path_for` is a recursive method used to find the "path" for |
lib/scim_rails/version.rb