diff app/views/tweets/_tweet.atom.erb @ 104:f2398d2a6859

Prefer .attrs to .to_hash
author nanaya <me@myconan.net>
date Mon, 26 Sep 2016 02:40:08 +0900
parents f4805ac41656
children 3ad8e6d20e79
line wrap: on
line diff
--- a/app/views/tweets/_tweet.atom.erb	Mon Sep 26 02:39:40 2016 +0900
+++ b/app/views/tweets/_tweet.atom.erb	Mon Sep 26 02:40:08 2016 +0900
@@ -3,7 +3,7 @@
   <published><%= tweet.created_at %></published>
   <updated><%= tweet.created_at %></updated>
   <link rel="alternate" type="text/html" href="<%= tweet.uri %>"/>
-  <title><%= ellipsize tweet.to_hash[:full_text] %></title>
+  <title><%= ellipsize tweet.attrs[:full_text] %></title>
   <content type="html">
     <%= render(:partial => "tweet", :formats => :html, :locals => { :tweet => tweet }).to_str %>
   </content>