trogdir_models 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trogdir/changeset.rb +10 -0
- data/lib/trogdir/syncinator.rb +1 -1
- data/lib/trogdir_models/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edb9470ea04be61ae4649b4e2027be09a40b620b
|
4
|
+
data.tar.gz: 0aeeead1af33652a0d7c86412ff45fe911459f88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 089237ffaebb318aa47757e285842332eb196c04b1235c60cc96324f95acd9c01e5a8bd481c6312c3939ee8d22a53fd5b6b58cb526433755cc1e347faa6269f0
|
7
|
+
data.tar.gz: 93a5d7f0d5b918614cf354d007468cc2e13d4539316877d2f9ef1e721958573cee016c5f39c837a104d3ba4ea2ae9f00492100182e55040f74080e9a20f68846
|
data/lib/trogdir/changeset.rb
CHANGED
@@ -3,5 +3,15 @@ class Changeset
|
|
3
3
|
|
4
4
|
has_many :change_syncs
|
5
5
|
|
6
|
+
after_create :create_change_syncs
|
7
|
+
|
6
8
|
alias :person :trackable_root
|
9
|
+
|
10
|
+
private
|
11
|
+
|
12
|
+
def create_change_syncs
|
13
|
+
Syncinator.where(active: true).each do |syncinator|
|
14
|
+
change_syncs.create syncinator: syncinator
|
15
|
+
end
|
16
|
+
end
|
7
17
|
end
|
data/lib/trogdir/syncinator.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trogdir_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Crownoble
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: api-auth
|