Add markdown pattern for uploads to file uploader

This commit is contained in:
Grzegorz Bizon 2016-03-24 10:01:30 +01:00
parent 7b2af8740d
commit cff3497f2c
1 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# encoding: utf-8
class FileUploader < CarrierWave::Uploader::Base
include UploaderHelper
MARKDOWN_PATTERN = %r{\!?\[.*?\]\(/uploads/(?<secret>[0-9a-f]{32})/(?<file>.*?)\)}
storage :file