mongo_mapper_versioned 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,12 @@
|
|
1
1
|
module MongoMapper
|
2
2
|
module Plugins
|
3
3
|
module Versioned
|
4
|
+
|
5
|
+
extend ActiveSupport::Concern
|
6
|
+
|
7
|
+
|
4
8
|
|
9
|
+
# ----------------------------------------------------------------------
|
5
10
|
module ClassMethods
|
6
11
|
def versioned(options={})
|
7
12
|
configuration = { :ignored_keys => %w(_id version_number) }
|
@@ -21,6 +26,7 @@ module MongoMapper
|
|
21
26
|
|
22
27
|
|
23
28
|
|
29
|
+
# ----------------------------------------------------------------------
|
24
30
|
module InstanceMethods
|
25
31
|
|
26
32
|
def create_version
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo_mapper_versioned
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 2
|
10
|
+
version: 0.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tomas Celizna
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-02-18 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -59,6 +59,7 @@ files:
|
|
59
59
|
- lib/mongo_mapper/plugins/models/version.rb
|
60
60
|
- lib/mongo_mapper/plugins/version.rb
|
61
61
|
- lib/mongo_mapper/plugins/versioned.rb
|
62
|
+
- lib/mongo_mapper_versioned.rb
|
62
63
|
- test/mongo_mapper_versioned_test.rb
|
63
64
|
- test/test_helper.rb
|
64
65
|
- README.rdoc
|