Skip to content

Commit

Permalink
fixing issue with rack 2.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
GBH committed Dec 30, 2019
1 parent 58c4ee3 commit ef0b230
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions app/assets/config/manifest.js
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
//= link_directory ../javascripts/comfy/cms .js
//= link_directory ../stylesheets/comfy/cms .css
//= link_directory ../fonts/comfy/cms .eot
6 changes: 4 additions & 2 deletions app/views/comfy/admin/cms/files/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
= render "comfy/admin/cms/categories/index", type: "Comfy::Cms::File"

:ruby
session_id = request.session_options[:id]
session_id_value = session_id.respond_to?(:public_id) ? session_id.public_id : session_id.to_s
cms_uploader_data = {
cms_uploader: {
url: comfy_admin_cms_site_files_path(@site, source: :plupload, categories: params[:categories]),
token: {name: request_forgery_protection_token, value: form_authenticity_token},
session: {name: Rails.application.config.session_options[:key], value: request.session_options[:id].public_id}
token: { name: request_forgery_protection_token, value: form_authenticity_token },
session: { name: Rails.application.config.session_options[:key], value: session_id_value }
}
}

Expand Down

0 comments on commit ef0b230

Please sign in to comment.