logga 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: fc185d64a918cac51a56b20765c205b38f54d785
4
- data.tar.gz: 1949c2c9853bd5772a7e440ac9504e71247fbffc
3
+ metadata.gz: ef9eb9e6f238e1ca98d0ff8b8933a3f206ed0a8a
4
+ data.tar.gz: ec8f97bdbe93b46757654541557deae47c066430
5
5
  SHA512:
6
- metadata.gz: dfb8995b4d5c6e42d979944e9bdab276376b2b6b1e59cb3deb0fc07785512a1bc8de44d7513c99f9a294dba3e88403ea3a3cb6a51a9328b86b1986d14b1e1b5b
7
- data.tar.gz: 2f9686849c6a73c2f32d01db7a4499e5d3c2c226e2aa798e029f3815fd3177d60a1dc973049f320fb98999ef7f4fe5349cf6b095fda297bc75ff27c27c4b70d5
6
+ metadata.gz: cae04985d801555643157ccc446cd6bef068889b923e0bf3ea63ab115618b6c3650c67fe9b9eb86c3424b7244da5e28c246ee5ffe6cc7326dafad936ce4283a6
7
+ data.tar.gz: 2df714cc3b2969d4247a71b5a0dc90e6a3789ac32695a7a8ad0aabd2a401c9a5235f03b42e48a21599405846588129b2ad1a7826dc9fb04c87fd798262839f2e
@@ -3,8 +3,8 @@ module Logga
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  class_methods do
6
- def add_log_entries_for_updates!
7
- around_update :log_model_changes
6
+ def add_log_entries_for(*actions)
7
+ around_update :log_model_changes if actions.include?(:update)
8
8
  end
9
9
  end
10
10
 
data/lib/logga/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Logga
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logga
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
  - Stuart Chinery, Rob Hesketh, Lorenzo Tello