culturecode_stagehand 0.6.4 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stagehand/active_record_extensions.rb +4 -8
- data/lib/stagehand/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: df79b4e0f27dc6044a855f9edaedaa0d8e27a373
|
4
|
+
data.tar.gz: a174ca6aa6a2345b0b2057ffd083f5c7e7793528
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb6a00233f8c4c281b3d6a5d207cad1621aba58b450084b8850f9ee4173ed7c55568bc6c4b0d1cf65fb26fe3cc82062781cfb216e48e9aef2e25a73b8db56d2e
|
7
|
+
data.tar.gz: 7a1b8b2450e4870841a7319b6c141793eaac53ce99bd2636c8c1e69a8763b219e0b355d4cb37d55403ae4214b50ca875408081fed8dd2b0ecacc1f9d9cee1e87
|
@@ -15,17 +15,13 @@ ActiveRecord::Base.class_eval do
|
|
15
15
|
super
|
16
16
|
|
17
17
|
subclass.class_eval do
|
18
|
-
|
19
|
-
lambda { where(:stagehand_commit_entries => {:table_name => subclass.table_name}) },
|
18
|
+
has_one :stagehand_sync_indicator,
|
19
|
+
lambda { where(:stagehand_commit_entries => {:table_name => subclass.table_name}).readonly },
|
20
20
|
:class_name => Stagehand::Staging::CommitEntry,
|
21
21
|
:foreign_key => :record_id
|
22
22
|
|
23
|
-
def
|
24
|
-
|
25
|
-
stagehand_commit_entries.contained.blank?
|
26
|
-
else
|
27
|
-
stagehand_commit_entries.blank?
|
28
|
-
end
|
23
|
+
def synced?
|
24
|
+
stagehand_sync_indicator.present?
|
29
25
|
end
|
30
26
|
end
|
31
27
|
end
|
data/lib/stagehand/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: culturecode_stagehand
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas Jakobsen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-05-
|
12
|
+
date: 2016-05-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|