Last active
January 15, 2016 11:31
-
-
Save maxehmookau/424baa5aff07b6a50431 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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