mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
Permit specific params in images controller
This commit is contained in:
@@ -34,6 +34,12 @@ module Spree
|
||||
def destroy_before
|
||||
@viewable = @image.viewable
|
||||
end
|
||||
|
||||
def permitted_resource_params
|
||||
params.require(:image).permit(
|
||||
:attachment, :viewable_id, :alt
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user