Solves #3153. It refactors images attributes.

This commit is contained in:
rogelio-o
2019-01-12 17:42:55 +01:00
parent cc288fcedd
commit ea76179002
7 changed files with 13 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
class Admin::MilestonesController < Admin::BaseController
include Translatable
include ImagesHelper
before_action :load_milestoneable, only: [:index, :new, :create, :edit, :update, :destroy]
before_action :load_milestone, only: [:edit, :update, :destroy]
@@ -41,7 +42,6 @@ class Admin::MilestonesController < Admin::BaseController
private
def milestone_params
image_attributes = [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy]
documents_attributes = [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy]
attributes = [:publication_date, :status_id,
translation_params(Milestone),