|
|
|
@ -194,7 +194,7 @@ class HacksController < ApplicationController
|
|
|
|
|
logger.info("###all_sets: #{all_sets_id.include?(set[:id])}")
|
|
|
|
|
if all_sets_id.include?(set[:id])
|
|
|
|
|
update_attrs = {input: set[:input], output: set[:output], position: set[:position]}
|
|
|
|
|
@hack.hack_sets.find_by!(id: set[:id]).update_attributes(update_attrs)
|
|
|
|
|
@hack.hack_sets.find_by!(id: set[:id]).update_attributes!(update_attrs)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|