diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-16 19:39:58 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-18 15:44:21 +0300 |
commit | 7d0fe1f04ed285e7e5cf825a305114b3e981c2f8 (patch) | |
tree | 7ad00009bb144bbe76534310175734e6885be619 /app/models/deployment.rb | |
parent | 4e898b9b5e1a782d226212ba6227a8ddcb5177ae (diff) |
Add implementation of manual actions
Diffstat (limited to 'app/models/deployment.rb')
-rw-r--r-- | app/models/deployment.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/deployment.rb b/app/models/deployment.rb index 520026c18dd..44dfb67552e 100644 --- a/app/models/deployment.rb +++ b/app/models/deployment.rb @@ -32,4 +32,8 @@ class Deployment < ActiveRecord::Base def keep_around_commit project.repository.keep_around(self.sha) end + + def playable_actions + deployable.try(:playable_actions) + end end |