active_touch 3.0.0 → 3.0.1

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODBjYzUzODliMmYyOTVhZjc5Nzc3YjQ4NmUwM2ZjOGIwNDc2OTlhMg==
4
+ ZmJhNWUxNzA1OTg2MjNhMTc1YjU2MzY0MzEwZmUxOGIyMzAzMTllNg==
5
5
  data.tar.gz: !binary |-
6
- MzY4YWUyNTJkYmIwYzU0NGQ1OWFmYzIzMDg0MjNiOWYzOTRjNmM4ZA==
6
+ ODZiZDI4MDg5YzBkZjI3NGU5NmEzMDlkZWU0YjZiM2ZjZGMyMjI4ZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODI1YzViMGI0NTUzODVmMjJhMmM2Nzg0OGUzZGRiYWRhNjk3YWQ1NDBjNGQ4
10
- NWJkNWI5ZDljYWRjZDY0Y2Q0ZGNkYjFlNWUzZmY4M2Q0MTc3ZjRlNmM3ODg5
11
- YjBhMzIyNzNiZmRlMmFjZWQzOTFmMDIyOGM1NjYzNzA0MmM0ZDI=
9
+ MDYzODJhZmIxOWJhY2MwNzgzOWJmZDI5YWQzZDg2MGJmZTkyOGQ0YTQwNTdk
10
+ YzA2MWUzMDNkY2Q2MWUwOWFkODU3MTNhMDIxZDEzZmRlNmQyNzljOTY4YzYw
11
+ Yzc1Zjk4MzQwNzdjMzU5YzQxYzIwMTEzNjFhMzE0MDU3NDkxY2Q=
12
12
  data.tar.gz: !binary |-
13
- NDE1ZDZmNTFlZTIzNzZiMjFkMDM0MGU5ODcxNmM2MTY4MzI3YzhmMDlmY2Nk
14
- YTc1NTU2NmE3NzhhNTMyODk1ZjAwN2NhOWE4ODAxMDNkYzAzYTFiMTE4YjFk
15
- Zjc4OTAxMDA4M2E2MTY5MGM1MGQxODFhZGViZmY2NzIzOWM5MzY=
13
+ YjI4MjM1MGI5MDM5ZjFmNDZjNmRhNWVmMGNjMThlOTkzYjRmNWY0NzMwNjg3
14
+ MDNhZDVjNTQxOTlmZGFmMWE3ZDI0YzI1YzNiNjI1N2VmYzNiYmNkMGViYzAx
15
+ NjY3YWE3YWQ0MGZjZTBlOGVlNzJiZDNhNTEwYjU3Zjc3OWY0MWY=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_touch (2.0.1)
4
+ active_touch (3.0.1)
5
5
  rails (~> 4.2)
6
6
 
7
7
  GEM
@@ -5,11 +5,17 @@ module ActiveTouch
5
5
  associated = association == 'self' ? record : record.send(association)
6
6
 
7
7
  if associated.is_a? ActiveRecord::Base
8
- associated.update_columns(ActiveTouch.timestamp_attribute => record.updated_at) unless ActiveTouch.timestamp_attribute.nil?
8
+ unless ActiveTouch.configuration.timestamp_attribute.nil?
9
+ associated.update_columns(ActiveTouch.configuration.timestamp_attribute => record.updated_at)
10
+ end
11
+
9
12
  associated.send(after_touch) unless after_touch.blank?
10
13
 
11
14
  elsif !associated.nil? && !associated.empty?
12
- associated.update_all(ActiveTouch.timestamp_attribute => record.updated_at) unless ActiveTouch.timestamp_attribute.nil?
15
+ unless ActiveTouch.configuration.timestamp_attribute.nil?
16
+ associated.update_all(ActiveTouch.configuration.timestamp_attribute => record.updated_at)
17
+ end
18
+
13
19
  associated.each { |associate| associate.send(after_touch) } unless after_touch.blank?
14
20
  end
15
21
  end
@@ -1,3 +1,4 @@
1
1
  module ActiveTouch
2
- VERSION = '3.0.0'
2
+ VERSION = '3.0.1
3
+ '
3
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_touch
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Pheasey