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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d24adbab46ccf8204862fa0a2966e846ec00d97e
4
- data.tar.gz: 393978759a86781a275bc6feae2d6b75a44e8437
3
+ metadata.gz: df79b4e0f27dc6044a855f9edaedaa0d8e27a373
4
+ data.tar.gz: a174ca6aa6a2345b0b2057ffd083f5c7e7793528
5
5
  SHA512:
6
- metadata.gz: bb7215db80f3c5ea2e55db80c2560921b71ea828220dee1996f5cf93282d78a62ef0bfc2a60f3abd0086147470007446cc3a7d1d1ca19dd462e67c5339ad3f3e
7
- data.tar.gz: 925308067dade6b0a08715186bd62f052c2c713de6151f6c692900d982d81497809ea8b613ad29ff860e7dee96186e24c9c2fcc40c74b0443c3ac6df4bd8a71f
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
- has_many :stagehand_commit_entries,
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 stagehand_synced?(options = {})
24
- if options[:only_contained]
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
@@ -1,3 +1,3 @@
1
1
  module Stagehand
2
- VERSION = "0.6.4"
2
+ VERSION = "0.7.0"
3
3
  end
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.6.4
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-20 00:00:00.000000000 Z
12
+ date: 2016-05-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails