Pswadi/add stop n approve

Describe your PR

/cc @zendesk/samson

### References
 - Jira link:

### Risks
 - None
Nice catch... i did not think about it. Modified the code to update buddy
only if it is someone other than original deployer. Thanks!


On Tue, Aug 26, 2014 at 7:45 PM, Jason Smale <notifications@github.com>
wrote:

> In app/controllers/deploys_controller.rb:
>
> > @@ -109,6 +109,7 @@ def changeset
> >
> >    def destroy
> >      if @deploy.can_be_stopped_by?(current_user)
> > +      @deploy.canceled_by_buddy!(current_user) if @deploy.pending?
>
> If the deployer opts to stop the deploy, rather than waiting for a buddy,
> then I think this method would still get called. Need to check that the
> user is a buddy, rather than the current deployer.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/zendesk/samson/pull/60/files#r16755183>.
>