Class PublishedArticle
In: app/models/published_article.rb
Parent: Article

Methods

Public Class methods

[Source]

    # File app/models/published_article.rb, line 8
 8:   def self.description
 9:     _('A reference to another article published in another profile')    
10:   end

[Source]

   # File app/models/published_article.rb, line 4
4:   def self.short_description
5:     _('Reference to other article')
6:   end

Public Instance methods

[Source]

    # File app/models/published_article.rb, line 12
12:   def body
13:     reference_article.body
14:   end

[Source]

    # File app/models/published_article.rb, line 17
17:   def update_name
18:     self.name ||= self.reference_article.name
19:   end

[Validate]