changeset 104:f2398d2a6859

Prefer .attrs to .to_hash
author nanaya <me@myconan.net>
date Mon, 26 Sep 2016 02:40:08 +0900
parents 1251b3d6ec5d
children ad464c8b6991
files app/views/tweets/_tweet.atom.erb
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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>