lessonly / scim_rails

SCIM Adapter for Rails.
MIT License
68 stars 76 forks source link

fix: operation==replace assertion fixed #68

Open lothardp opened 9 months ago

lothardp commented 9 months ago

Why?

operation["op"].casecmp("replace") will allways return a "truthy" value, so it is useless for checking if the operation param is actually "replace". The casecpm? method should be used.

What?

Just changes operation["op"].casecmp("replace") for operation["op"].casecmp?("replace").

Caveats

None

Testing Notes

I don't think any specific testing is required.