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 +4 -4
- data/lib/triggerable.rb +11 -1
- data/lib/triggerable/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f0d2fe922b908d4ba7d4c513e2263c4dc1b396c
|
4
|
+
data.tar.gz: a6fa00c9c558bab8aa600a44029379e54a2e553a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 = [
|
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) }
|
data/lib/triggerable/version.rb
CHANGED
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.
|
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-
|
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
|