comparison app/views/tweets/show.atom.builder @ 85:101904debfcd

Add user icon
author nanaya <me@myconan.net>
date Mon, 27 Jun 2016 05:12:40 +0900
parents 448a368f7344
children
comparison
equal deleted inserted replaced
84:07e2e9883ea6 85:101904debfcd
1 atom_feed do |feed| 1 atom_feed do |feed|
2 feed.title "#{@user.name} (@#{@user.screen_name})" 2 feed.title "#{@user.name} (@#{@user.screen_name})"
3 feed.icon @user.profile_image_url_https
3 feed.updated @tweets.first.try(:created_at) || Time.at(0) 4 feed.updated @tweets.first.try(:created_at) || Time.at(0)
4 5
5 @tweets.each do |tweet| 6 @tweets.each do |tweet|
6 feed.entry tweet, :url => tweet.uri, :updated => tweet.created_at do |entry| 7 feed.entry tweet, :url => tweet.uri, :updated => tweet.created_at do |entry|
7 entry.title ellipsize(tweet.text) 8 entry.title ellipsize(tweet.text)