Skip to content

Instantly share code, notes, and snippets.

@webdestroya
Created June 19, 2013 18:54
Show Gist options
  • Save webdestroya/5816902 to your computer and use it in GitHub Desktop.
Save webdestroya/5816902 to your computer and use it in GitHub Desktop.
task :close, [:number] do |t, args|
number = args[:number]
status = IssueStatus.find_by_name("Closed")
Issue.find(number).update_attribute(:status, status.id)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment