cowtech-rails 1.5.1.0 → 1.5.2.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -35,13 +35,11 @@ module Cowtech
|
|
35
35
|
def delete(definitive = false)
|
36
36
|
if !definitive then
|
37
37
|
if self.deletable? then
|
38
|
-
if self.
|
39
|
-
self.
|
40
|
-
self.save
|
38
|
+
if self.has_attribute?(self.deleted_column) then
|
39
|
+
self.update_attribute(self.deleted_column, true)
|
41
40
|
true
|
42
|
-
elsif self.
|
43
|
-
self.
|
44
|
-
self.save
|
41
|
+
elsif self.has_attribute?(self.status_column) then
|
42
|
+
self.update_attribute(self.status_column, self.deleted_status)
|
45
43
|
true
|
46
44
|
else
|
47
45
|
super()
|
data/lib/cowtech/version.rb
CHANGED