Skip to content

Instantly share code, notes, and snippets.

@sinefunc
Created July 6, 2010 14:52
Show Gist options
  • Save sinefunc/465479 to your computer and use it in GitHub Desktop.
Save sinefunc/465479 to your computer and use it in GitHub Desktop.
# ... assuming this code is at an instance level of your `Ohm::Model`
keys = ["set1", "set2"]
# previously...
db.sunionstore(key(:sorted_position_tags), *keys)
# now
key[:sorted_position_tags].sunionstore(*keys)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment