Fix hash return for image attributes
This commit is contained in:
@@ -118,6 +118,9 @@ module Suppliers
|
|||||||
file.binmode
|
file.binmode
|
||||||
file.write decoded_attribute
|
file.write decoded_attribute
|
||||||
authorized_params[attribute] = file
|
authorized_params[attribute] = file
|
||||||
|
else
|
||||||
|
# Will be a <ActionController::Parameters {"small"=>"/system/product/:id/images/small.?1421223999"} permitted: true>
|
||||||
|
authorized_params.delete attribute
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user