diff options
| author | hukl <contact@smyck.org> | 2009-09-12 13:14:06 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-12 13:14:06 +0200 |
| commit | 49568b847db1acadb1c2186219b2488b5621f4d0 (patch) | |
| tree | 56a45c1e26429f74d012a7b6c1967b05d5234b1d /app/models | |
| parent | 1e110b74e2202ab0550550d0d446e7d29aba7146 (diff) | |
changed the ui click flow a bit
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/node.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/node.rb b/app/models/node.rb index b23e43b..4e94efc 100644 --- a/app/models/node.rb +++ b/app/models/node.rb | |||
| @@ -137,6 +137,10 @@ class Node < ActiveRecord::Base | |||
| 137 | self.save | 137 | self.save |
| 138 | end | 138 | end |
| 139 | 139 | ||
| 140 | def locked? | ||
| 141 | !self.lock_owner.nil? | ||
| 142 | end | ||
| 143 | |||
| 140 | def unlock! | 144 | def unlock! |
| 141 | self.lock_owner = nil | 145 | self.lock_owner = nil |
| 142 | self.save | 146 | self.save |
