Class: Ckeditor::AssetDecorator

Inherits:
Georgia::ApplicationDecorator show all
Defined in:
app/decorators/ckeditor/asset_decorator.rb

Direct Known Subclasses

PictureDecorator

Instance Method Summary collapse

Methods inherited from Georgia::ApplicationDecorator

#pretty_created_at, #pretty_updated_at

Instance Method Details

#filename_truncatedObject



8
9
10
# File 'app/decorators/ckeditor/asset_decorator.rb', line 8

def filename_truncated
  h.truncate(data_file_name, length: 30)
end

#list_all_tagsObject



4
5
6
# File 'app/decorators/ckeditor/asset_decorator.rb', line 4

def list_all_tags
  h.raw model.tags.map{ |t| h.link_to t.name, h.tag_path(t) }.join(', ')
end