Class: Georgia::ContentDecorator
- Inherits:
-
ApplicationDecorator
- Object
- Draper::Decorator
- ApplicationDecorator
- Georgia::ContentDecorator
- Defined in:
- app/decorators/georgia/content_decorator.rb
Instance Method Summary collapse
Methods inherited from ApplicationDecorator
#pretty_created_at, #pretty_updated_at
Instance Method Details
#title_or_none ⇒ Object
4 5 6 |
# File 'app/decorators/georgia/content_decorator.rb', line 4 def title_or_none title.present? ? title : h.content_tag(:span, 'No title', class: 'muted') end |