<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -13,5 +13,13 @@ module SharingsHelper
         :html =&gt; {:title =&gt; I18n.t(&quot;tog_social.sharings.share_with&quot;, :name =&gt; share_with.name)}
   end
   
+  def shareable_title(shareable)
+    if (shareable.respond_to?(:name))
+      string = shareable.name
+    else
+      string = shareable.title
+    end
+    string
+  end  
 end
 </diff>
      <filename>app/helpers/sharings_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-&lt;h1&gt;&lt;%= I18n.t('tog_social.sharings.share', :name =&gt; @shareable.name) %&gt;&lt;/h1&gt;
+&lt;h1&gt;&lt;%= I18n.t('tog_social.sharings.share', :name =&gt; shareable_title(@shareable)) %&gt;&lt;/h1&gt;
 
 &lt;span id=&quot;share_with_groups_message&quot;&gt;&lt;/span&gt;
 
@@ -33,4 +33,4 @@
     
 &lt;/div&gt; &lt;!-- ./col_50_50 --&gt;
 
-&lt;%= link_to I18n.t('tog_social.back'), @referer %&gt;
\ No newline at end of file
+&lt;%= link_to I18n.t('tog_social.back'), @referer %&gt;</diff>
      <filename>app/views/member/sharings/index.html.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ebb3fc5377e89b82f2d2a37a6bd65c39477ce408</id>
    </parent>
  </parents>
  <author>
    <name>Andrei Erdoss</name>
    <email>erdoss@gmail.com</email>
  </author>
  <url>http://github.com/tog/tog_social/commit/f296b3aff7dcdf88e3d6678595932017cdae8516</url>
  <id>f296b3aff7dcdf88e3d6678595932017cdae8516</id>
  <committed-date>2009-06-25T00:16:09-07:00</committed-date>
  <authored-date>2009-06-24T09:06:15-07:00</authored-date>
  <message>Added sharing_title helper when the object doesn't have name attribute

Signed-off-by: tog - extensible open source social network platform &lt;tog@linkingpaths.com&gt;</message>
  <tree>53b6a28accc38d89e0915e7e4325336e92011107</tree>
  <committer>
    <name>tog - extensible open source social network platform</name>
    <email>tog@linkingpaths.com</email>
  </committer>
</commit>
