Skip to content

Instantly share code, notes, and snippets.

@maxehmookau
Last active January 15, 2016 11:31
Show Gist options
  • Save maxehmookau/424baa5aff07b6a50431 to your computer and use it in GitHub Desktop.
Save maxehmookau/424baa5aff07b6a50431 to your computer and use it in GitHub Desktop.
def service_groups
ServiceGroup.where(id: @input['service_groups'].map{ |s| s['id'] })
end
def locations
------------------- ----------------------
Location.where(id: @input['locations'].map{ |s| s['id'] })
------------------- ----------------------
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment