Commit af5ca993799f596f2705da33354cc27ff7a72c53
1 parent
8f425334
Exists in
master
fix typo
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/scim_rails/scim_users_controller.rb
@@ -143,7 +143,7 @@ module ScimRails | @@ -143,7 +143,7 @@ module ScimRails | ||
143 | 143 | ||
144 | def path_for(attribute, object = ScimRails.config.mutable_user_attributes_schema, path = [], finded_paths = []) | 144 | def path_for(attribute, object = ScimRails.config.mutable_user_attributes_schema, path = [], finded_paths = []) |
145 | at_path = path.empty? ? object : object.dig(*path) | 145 | at_path = path.empty? ? object : object.dig(*path) |
146 | - return if at_path == attribute | 146 | + return path if at_path == attribute |
147 | 147 | ||
148 | result = nil | 148 | result = nil |
149 | case at_path | 149 | case at_path |