ref: master
app/models/link_article.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
class LinkArticle < Article attr_accessible :reference_article def self.short_description "Article link" end delegate :name, :to => :reference_article delegate :body, :to => :reference_article delegate :abstract, :to => :reference_article delegate :url, :to => :reference_article end |