Skip to content

Instantly share code, notes, and snippets.

@markstory
Created March 15, 2016 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markstory/8cf8c91d31f8fc2c891b to your computer and use it in GitHub Desktop.
Save markstory/8cf8c91d31f8fc2c891b to your computer and use it in GitHub Desktop.
Billings::Subscription
.where(systemid: Role.where(
identity_id: id,
role: Role::ADMIN_ROLE || Role::STAFF_ROLE).map(&:systemid))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment