Guest User

Untitled

a guest
Oct 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. This is like a-b, where a and b are sets, but it effectively uses a case-insensitive comparison function.
  2.  
  3. The reason for this is that Rails/MySQL find_by is case-insensitive. So if you have a data feed where someone's changed only the case, but don't want that to actually affect anything, you can use this function to see if there's a real difference (beyond just flipping the case).
Add Comment
Please, Sign In to add comment