app/controllers/fiona7/blobs_controller.rb in infopark_fiona7-0.71.0.3 vs app/controllers/fiona7/blobs_controller.rb in infopark_fiona7-0.71.0.4

- old
+ new

@@ -1,10 +1,21 @@ module Fiona7 class BlobsController < ActionController::Base - include Fiona7::BinaryHandling::DeliveryMixin + include RailsConnector::CmsAccessible + before_filter :load_obj + before_filter :ensure_object_is_active + before_filter :ensure_object_is_permitted + protected + def load_obj + @obj = Fiona7::WriteObj.find(binary_id_from_params) + end + + def render_obj_error(code, msg) + head code + end def binary_id_from_params params[:id] end