snapshotable 0.1.0 → 0.1.1

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: 7040b8e2dbf8340101b338b1ba076e33a73137d4
4
- data.tar.gz: 8545fcb80172d4062b0f8d7926da4e4088d0ff1b
3
+ metadata.gz: b09d5b3092f500fd390a14910fab5c81dca8e0a2
4
+ data.tar.gz: b94736fc88d7b25a84cce4b4e56a7205e9720bc8
5
5
  SHA512:
6
- metadata.gz: d454e050918822be5e32ea4656ed06252b0444b8765cde2f8f2e317dde9c6d6cc37e16fcb8343ef88a7f228368359bd7d7b1e1bfecf8f29dca87b6ee2dfdf7f6
7
- data.tar.gz: 9b313144a07ff5690ee5ebefb4a33bf7e4d6a4ba9aa794df493c8d7b69704291960f0a52ebbcefb45fe27144ded265a0d578d7cfac80641415fb004b4ff4dab8
6
+ metadata.gz: 91ed83cf0aaa5857c4d38a7e9703cc91747b529778db783db2b6ebd84a3f91b14b504d059e9a0f53a294f8660ef9355cde72e36fc45b650aba5b9b923b9cbe00
7
+ data.tar.gz: 285028e088d072558e60d8f36f009c0c0eec0b83c6c917f72939f4812f84172baa4ef9348fb22ac257189561eda98d172f8b5901d7b5b238a8c533a0701f77ec
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  [![Build Status](https://travis-ci.com/QultureRocks/snapshotable.svg?branch=master)](https://travis-ci.com/QultureRocks/snapshotable)
2
+ [![Maintainability](https://api.codeclimate.com/v1/badges/b48c636138e1380abcb1/maintainability)](https://codeclimate.com/github/QultureRocks/snapshotable/maintainability)
2
3
 
3
4
  # Snapshotable
4
5
 
@@ -86,9 +86,10 @@ module Snapshotable
86
86
  end
87
87
 
88
88
  def setup_callback(klass)
89
- klass.after_create(
90
- :take_snapshot!
91
- )
89
+ klass.after_create do
90
+ take_snapshot!
91
+ clear_association_cache
92
+ end
92
93
  end
93
94
 
94
95
  def snapshot_class_name
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Snapshotable
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snapshotable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - João Batista Marinho
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-08-13 00:00:00.000000000 Z
12
+ date: 2018-08-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord