Last active
June 15, 2018 17:46
-
-
Save tbuehlmann/ba5e77a862801addcc64312ee4dc02fe 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
json.sessions do | |
@session_groups.each_value do |sessions| | |
sessions.each do |session| | |
json.child! { json.call(session, :id) } | |
end | |
end | |
end |
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
{"sessions":[{"id":1},{"id":2},{"id":3}]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment