app/controllers/spina/admin/attachments_controller.rb in spina-1.2.0 vs app/controllers/spina/admin/attachments_controller.rb in spina-2.0.0.alpha

- old
+ new

@@ -22,31 +22,9 @@ @attachment = Attachment.find(params[:id]) @attachment.destroy redirect_to spina.admin_attachments_url end - def select - @selected_attachment_id = Attachment.find_by(id: params[:selected_attachment_id]).try(:id) - @hidden_field_id = params[:hidden_field_id] - @attachments = Attachment.sorted - @attachment = Attachment.new - end - - def insert - @attachment = Attachment.find(params[:attachment_id]) - Rails.logger.info "HAHA HA HA #{@attachment.id}" - end - - def select_collection - @selected_attachment_ids = Attachment.where(id: params[:selected_attachment_ids]).ids - @attachments = Attachment.sorted - @attachment = Attachment.new - end - - def insert_collection - @attachments = Attachment.where(id: params[:attachment_ids]) - end - private def set_breadcrumbs add_breadcrumb I18n.t('spina.website.media_library'), spina.admin_media_library_path end