module Ckeditor::Backend::Dragonfly::ClassMethods
Public Instance Methods
attachment_file_types()
click to toggle source
# File lib/ckeditor/backend/dragonfly.rb, line 16 def attachment_file_types @attachment_file_types ||= Ckeditor.attachment_file_types.map(&:to_s).tap do |formats| # This is not ideal but Dragonfly doesn't return double # extensions. Having said that, the other backends # currently don't use attachment_file_types at all. FORMATS.each do |f| formats << f if formats.include?("tar.#{f}") end end end
image_file_types()
click to toggle source
# File lib/ckeditor/backend/dragonfly.rb, line 27 def image_file_types @image_file_types ||= Ckeditor.image_file_types.map(&:to_s) end