Advertisement
Guest User

Check

a guest
Jan 13th, 2017
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.17 KB | None | 0 0
  1. def check(param)
  2.     ops << [:replace, [param].to_sym, user.public_send(param) unless user.public_send(param) == existing.public_send(param)
  3. end
  4.  
  5. check(gecos)
  6. check(description)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement