feather-twitter/models/tweet.rb
##
# This provides a summary of the text update, if it's longer than 30 characters
This provides a summary of the text update, if it's longer than 30 characters
This provides a summary of the text update if it ' s longer than 30 characters
def text_summary
    summary = attribute_get(:text)
    summary = summary[(summary.index(" ") + 1)...summary.length] if summary[0...1] == "@"
    summary = (summary.length > 30 ? "#{summary[0..30]}..." : summary[0..30])
    summary
  end
def text_summary summary = attribute_get ( :text ) summary = summary [ ( summary . index ( " " ) + 1 ) ... summary . length ] if summary [ 0 ... 1 ] == "@" summary = ( summary . length > 30 ? "#{summary[0..30]}..." : summary [ 0 .. 30 ] ) summary end
This provides a summary of the text update, if it's longer than 30 characters
This provides a summary of the text update if it ' s longer than 30 characters