Module: StatusMessagesHelper

Defined in:
app/helpers/status_messages_helper.rb

Overview

Copyright © 2010, Diaspora Inc. This file is

  licensed under the Affero General Public License version 3 or later.  See
  the COPYRIGHT file.

Instance Method Summary (collapse)

Instance Method Details

- (Object) my_latest_message



6
7
8
9
10
11
12
# File 'app/helpers/status_messages_helper.rb', line 6

def my_latest_message
  unless @latest_status_message.nil?
    return @latest_status_message.text
  else
    return I18n.t('status_messages.helper.no_message_to_display')
  end
end