Skip to content

Commit

Permalink
[WIP] Removes debugging stuffs, improves formatting of long lines of
Browse files Browse the repository at this point in the history
code
  • Loading branch information
Zach Perrault committed Dec 19, 2015
1 parent 6f97d66 commit f9e7da1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/commands/remove_relationships_for_package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ def sever_plural_connections
@package.send(
[relationship, '='].join.to_sym,
@package.send(relationship).select { |val|
binding.pry
val.manifest.environment == @new_environment
})
end
Expand Down
6 changes: 6 additions & 0 deletions app/models/manifest/computer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,12 @@ def self.bulk_update_attributes(computers,computer_attributes)
raise ComputerError.new("Nothing to update")
else
computers.each do |c|
if computer_attributes['environment_id']
RemoveRelationshipsForComputer.new(
c,
Environment.find(computer_attributes['environment_id'])
).perform
end
c.update_attributes(computer_attributes)
end
end
Expand Down

0 comments on commit f9e7da1

Please sign in to comment.