Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created January 13, 2017 14:11
Show Gist options
  • Save anonymous/cff39e5d669d0ec9e9b3b150c095feb1 to your computer and use it in GitHub Desktop.
Save anonymous/cff39e5d669d0ec9e9b3b150c095feb1 to your computer and use it in GitHub Desktop.
def check(param)
ops << [:replace, [param].to_sym, user.public_send(param) unless user.public_send(param) == existing.public_send(param)
end
check(gecos)
check(description)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment