believer 0.2.20 → 0.2.21

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,11 +35,16 @@ module Believer
35
35
 
36
36
  # Destroys the model.
37
37
  def destroy
38
- res = Delete.new(:record_class => self.class).where(key_values).execute
38
+ res = self.delete
39
39
  @persisted = false
40
40
  res
41
41
  end
42
42
 
43
+ # Deletes the Cassandra row.
44
+ def delete
45
+ Delete.new(:record_class => self.class).where(key_values).execute
46
+ end
47
+
43
48
  def persisted!
44
49
  @persisted = true
45
50
  end
@@ -1,5 +1,5 @@
1
1
  module Believer
2
2
  module Version
3
- VERSION = '0.2.20'
3
+ VERSION = '0.2.21'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: believer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.20
4
+ version: 0.2.21
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-14 00:00:00.000000000 Z
12
+ date: 2014-01-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel