Module: Immigrada::LocalImagesDecorator

Defined in:
lib/immigrada/local_images_decorator.rb

Overview

Decorator module to replace remote images in post with their downloaded module. Extends MarkdownEntry class.

Instance Method Summary collapse

Instance Method Details

#combine_postObject



6
7
8
9
10
# File 'lib/immigrada/local_images_decorator.rb', line 6

def combine_post
  post_dir = "#{@b_entry.published}-#{@b_entry.slug}"
  @content = insert_local_images(@content, post_dir)
  super
end