Class: Comment

Overview

Copyright © 2010-2011, Diaspora Inc. This file is

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

Defined Under Namespace

Classes: Generator

Instance Method Summary collapse

Methods included from Reference::Source

#create_references

Methods included from Diaspora::MentionsContainer

#create_mentions, #mentioned_people, #message, #subscribers

Methods included from Diaspora::Likeable

included, #update_likes_counter

Methods included from Diaspora::Taggable

#build_tags, format_tags, format_tags_for_mail, included, #tag_strings

Methods included from Diaspora::Relayable

#author_is_not_ignored, included, #parent, #root, #sender_for_dispatch, #subscribers

Methods included from Diaspora::Fields::Author

included

Methods included from Diaspora::Fields::Guid

included, #set_guid

Methods included from Diaspora::Federated::Base

#object_to_receive, #subscribers

Instance Method Details

#add_mention_subscribers?Boolean

Returns:

  • (Boolean)

59
60
61
# File 'app/models/comment.rb', line 59

def add_mention_subscribers?
  super && parent.author.local?
end

#text=(text) ⇒ Object


55
56
57
# File 'app/models/comment.rb', line 55

def text= text
   self[:text] = text.to_s.strip #to_s if for nil, for whatever reason
end