Sha256: 9ec7ee6b32b0c159dba321fb8af1f9b006c0ac81d888d9a68817e55fd12157a1
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
require_dependency "ueditor_rails/application_controller" module UeditorRails class LibsController < ApplicationController after_filter :set_expires_at def swf_image_uploader send_file UeditorRails.ueditor_base_path.join('third-party/imageUploader.swf'), :disposition => 'inline', :type => 'application/x-shockwave-flash' end def swf_upload send_file UeditorRails.ueditor_base_path.join('third-party/swfupload/swfupload.swf'), :disposition => 'inline', :type => 'application/x-shockwave-flash' end def swf_upload_fp9 send_file UeditorRails.ueditor_base_path.join('third-party/swfupload/swfupload_fp9.swf'), :disposition => 'inline', :type => 'application/x-shockwave-flash' end def fclipboard_ueditor send_file UeditorRails.ueditor_base_path.join('third-party/fClipboard_ueditor.swf'), :disposition => 'inline', :type => 'application/x-shockwave-flash' end protected def set_expires_at response.headers['Expires'] = CGI.rfc1123_date(Time.now + 1.weeks) end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
ueditor_rails4-0.0.5 | app/controllers/ueditor_rails/libs_controller.rb |
ueditor_rails-0.0.4 | app/controllers/ueditor_rails/libs_controller.rb |