platanus 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/platanus/activable.rb +4 -4
- data/lib/platanus/version.rb +1 -1
- metadata +2 -2
data/lib/platanus/activable.rb
CHANGED
@@ -27,13 +27,13 @@ module Platanus
|
|
27
27
|
end
|
28
28
|
|
29
29
|
## Shorthand method for adding callbacks before item removal
|
30
|
-
def before_remove(
|
31
|
-
self.set_callback :remove, :before,
|
30
|
+
def before_remove(*_args, &_block)
|
31
|
+
self.set_callback :remove, :before, *_args, &_block
|
32
32
|
end
|
33
33
|
|
34
34
|
## Shorthand method for adding callbacks after item removal
|
35
|
-
def after_remove(
|
36
|
-
self.set_callback :remove, :after,
|
35
|
+
def after_remove(*_args, &_block)
|
36
|
+
self.set_callback :remove, :after, *_args, &_block
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
data/lib/platanus/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: platanus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|