sequel-revisions 0.2.4 → 0.2.5
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.
- checksums.yaml +4 -4
- data/lib/sequel/plugins/revisions.rb +3 -2
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e1f8d809758f1678197ffaf085480a8482bc3e6c
|
|
4
|
+
data.tar.gz: b6b607ce0920a5f878b0cfc6b7d1e189509e849d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f18516c6c056ba837df4b62e613f2abb7232dcce2d1b3328d7d75f376388cff949ab7373ad06c98aee87fc0dd7ce34043a7b8166d83bcf70958727c9ec15b82
|
|
7
|
+
data.tar.gz: 7178666e1db7284c86750da850d0cadc6ffc85f5120465845b6d65a92c9555cbdd528484455efecaa990e18c29f164e9b32ada6732dde96a5d1afe6a9800e538
|
|
@@ -28,8 +28,8 @@ module Sequel
|
|
|
28
28
|
mobject = Object
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
# Don't redefine
|
|
32
|
-
|
|
31
|
+
# Don't redefine and don't define for embedded revisions
|
|
32
|
+
if !mobject.const_defined?(base_name) && options[:embedded_in].nil?
|
|
33
33
|
klass = setup_revisions_model(model, options)
|
|
34
34
|
# Actually define the class in the module
|
|
35
35
|
mobject.const_set base_name, klass
|
|
@@ -152,6 +152,7 @@ module Sequel
|
|
|
152
152
|
|
|
153
153
|
if options[:polymorphic]
|
|
154
154
|
klass.class_eval do
|
|
155
|
+
plugin :polymorphic
|
|
155
156
|
many_to_one :trackable, polymorphic: true
|
|
156
157
|
many_to_one :embeddable, polymorphic: true
|
|
157
158
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sequel-revisions
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fabian Becker
|
|
@@ -122,8 +122,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
122
122
|
version: '0'
|
|
123
123
|
requirements: []
|
|
124
124
|
rubyforge_project:
|
|
125
|
-
rubygems_version: 2.
|
|
125
|
+
rubygems_version: 2.5.2
|
|
126
126
|
signing_key:
|
|
127
127
|
specification_version: 4
|
|
128
128
|
summary: A plugin for the Ruby ORM Sequel, that allows tracking changes on your models.
|
|
129
129
|
test_files: []
|
|
130
|
+
has_rdoc:
|