app/controllers/refinery/admin/images_controller.rb in refinerycms-images-4.0.1 vs app/controllers/refinery/admin/images_controller.rb in refinerycms-images-4.0.2
- old
+ new
@@ -114,10 +114,11 @@
def init_dialog
@app_dialog = params[:app_dialog].present?
@field = params[:field]
@update_image = params[:update_image]
+ @image_id = params[:selected_image].to_i if params[:selected_image].present?
@thumbnail = params[:thumbnail]
@callback = params[:callback]
@multiple = params[:multiple]
@conditions = params[:conditions]
end
@@ -146,10 +147,10 @@
private
def permitted_image_params
[
- { image: [] }, :image_size, :image_title, :image_alt
+ :image, :image_size, :image_title, :image_alt
]
end
end
end