cowtech-rails 1.5.1.0 → 1.5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.respond_to?(self.deleted_column) then
39
- self.send(self.deleted_column, true)
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.respond_to?(self.status_column) then
43
- self.send(self.status_column, self.deleted_status)
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()
@@ -9,7 +9,7 @@ module Cowtech
9
9
  module Version
10
10
  MAJOR = 1
11
11
  MINOR = 5
12
- PATCH = 1
12
+ PATCH = 2
13
13
  BUILD = 0
14
14
 
15
15
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 5
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 1.5.1.0
10
+ version: 1.5.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Shogun