Created
May 17, 2017 21:37
-
-
Save giovannibenussi/c37686e7e65b861ba34234af80b2526d 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
def index | |
items_with_images = news_items.each do |item| | |
item[:image] = UserScope::FetchNewsItem.call(id: params[:id]).news_item.image | |
end | |
respond_with items_with_images | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment