Class: SocialNetworking::Like
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- SocialNetworking::Like
- Defined in:
- app/models/social_networking/like.rb
Overview
A sign of approval of a piece of content by a Participant.
Instance Method Summary collapse
Instance Method Details
#item_description ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'app/models/social_networking/like.rb', line 27 def item_description case item_type when "SocialNetworking::OnTheMindStatement" Shareable.new(item).description when "SocialNetworking::SharedItem" if item Shareable.new(item.item).description else Shareable.new(nil).description end end end |