Class: Link
Instance Method Summary collapse
Methods inherited from Post
#asset, find_by_permalink_or_id, #format_published_at, #to_param, types
Instance Method Details
#title ⇒ Object
4 5 6 |
# File 'app/models/posts/link.rb', line 4 def title self.read_attribute(:title).blank? ? self.link_url : self.read_attribute(:title) end |