Commit b75f92f433708ef26e5d9767342a922453e3f337

Authored by ๆŽ่™น้œ–
1 parent 9e288f80
Exists in master

add logger

app/controllers/scim_rails/scim_users_controller.rb
... ... @@ -93,7 +93,7 @@ module ScimRails
93 93  
94 94 ScimRails.config.mutable_user_attributes.each do |attribute|
95 95 param = operations.find { |operation| operation["path"] == path_for(attribute, ScimRails.config.patch_user_attributes_schema).map { |x| x.to_s }.join(".") } rescue nil
96   - user_params[attribute] = param["value"] if param.present?
  96 + user_params[attribute] ||= param["value"] if param.present?
97 97 end
98 98  
99 99 Rails.logger.error("scim update_user params: #{user_params.inspect}")
... ... @@ -111,6 +111,8 @@ module ScimRails
111 111 ScimRails.config.mutable_user_attributes.each do |attribute|
112 112 hash[attribute] ||= find_value_for(attribute)
113 113 end
  114 +
  115 + Rails.logger.error("scim permitted_user_params: #{hash.inspect}")
114 116 hash
115 117 end
116 118  
... ...
lib/scim_rails/version.rb
1 1 module ScimRails
2   - VERSION = "0.4.4"
  2 + VERSION = "0.4.5"
3 3 end
... ...