document_record 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -56,6 +56,10 @@ module DocumentRecord
56
56
  regular_save *arguments
57
57
  end
58
58
 
59
+ def save! *arguments
60
+ save(*arguments) || raise(RecordNotSaved)
61
+ end
62
+
59
63
  def save_document
60
64
  write_serialized_hash_attribute @@_document_field_name, document.to_hash
61
65
  end
@@ -1,3 +1,3 @@
1
1
  module DocumentRecord
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: document_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
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: 2013-06-11 00:00:00.000000000 Z
12
+ date: 2013-11-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: document_hash