Created
October 11, 2017 10:12
-
-
Save pieterjongsma/5526deca58e359fe58e0ca8d7acbfa6f to your computer and use it in GitHub Desktop.
This file contains 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
class EventWithFriends < SimpleDelegator | |
def attending_friends_for_user(user) | |
super(user) | |
end | |
end | |
class EventsFeed | |
def events | |
@events.map { |event| EventWithFriends.new(event) } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment