triggerable 0.1.9 → 0.1.10

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: 5cd47642923aee94d86401397eeff3693d8f2fd7
4
- data.tar.gz: 372ca92aa502e5aea89488a98521564417443127
3
+ metadata.gz: 5f0d2fe922b908d4ba7d4c513e2263c4dc1b396c
4
+ data.tar.gz: a6fa00c9c558bab8aa600a44029379e54a2e553a
5
5
  SHA512:
6
- metadata.gz: 40b665fd572e4e9eaa47494eec9be8dc725bca110ad32fdfc65412afe0a542342e8c12c88f441002980f3f3eb14a300db2cd9f90d95a5fc0ad6b38f1e3bc4134
7
- data.tar.gz: 7fba9adbd6596dc8f3fdd1e600d704b078db034b76c213acc03575096262e9e62106c91e71cb5cbb2c0de29fa883d77c4ae52525eca49313b9865a9e4c2eaa84
6
+ metadata.gz: d847c41a5adb6103f9b7db41e632a2a408960af751029a2341ab7dedcd1b4f4e791a03d837657b9c6969d8bc4437f431fc93007a8ef223298f1a26836df28d13
7
+ data.tar.gz: 99630d8fa4f94c61fb3accde6d7fc5b4ee8883a4244b5de0b54fc88fd70540e244b66a52af9d6170a72b5bac27afcd30851e1c89b5691132a8eb166c3ebfbd30
data/lib/triggerable.rb CHANGED
@@ -30,7 +30,17 @@ module Triggerable
30
30
  extend ActiveSupport::Concern
31
31
 
32
32
  included do
33
- CALLBACKS = [:before_create, :before_save, :before_update, :after_create, :after_save, :after_update]
33
+ CALLBACKS = [
34
+ :before_create,
35
+ :after_create,
36
+ :before_save,
37
+ :after_save,
38
+ :before_update,
39
+ :after_update,
40
+ :before_destroy,
41
+ :after_destroy
42
+ ]
43
+
34
44
  CALLBACKS.each do |callback|
35
45
  method_name = "run_#{callback}_triggers"
36
46
  define_method(method_name) { run_triggers(callback) }
@@ -1,3 +1,3 @@
1
1
  module Triggerable
2
- VERSION = '0.1.9'
2
+ VERSION = '0.1.10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: triggerable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - DmitryTsepelev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-13 00:00:00.000000000 Z
11
+ date: 2015-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -122,7 +122,6 @@ files:
122
122
  - LICENSE.txt
123
123
  - README.md
124
124
  - Rakefile
125
- - lib/.DS_Store
126
125
  - lib/triggerable.rb
127
126
  - lib/triggerable/actions/action.rb
128
127
  - lib/triggerable/actions/lambda_action.rb