bizness 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bizness/filters/base_filter.rb +7 -3
- data/lib/bizness/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43040dbc20489a24603976f0c3a8317122334b98
|
4
|
+
data.tar.gz: ca714a63fac174994ac0f854945235f37a73751c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fae39adf5736bc0cee09795e35dc77735f7334fa999c7dc7ab8dfd82bab938462d72e173055bb2458a259cb91abe1e8031b8512d7fdd5fa7de8ef9b5f8998708
|
7
|
+
data.tar.gz: 9820b9635012efcd52dbd3de12d4cca7e58f08b34f536265c3dd0176c1d1d8fbc048cfd3892cb919d126eeaec3be981637666fbf7532eb42ab2b107ed6cbf3d9
|
@@ -1,14 +1,18 @@
|
|
1
1
|
module Bizness::Filters
|
2
2
|
class BaseFilter < SimpleDelegator
|
3
|
+
attr_reader :__original_operation__
|
4
|
+
|
3
5
|
def initialize(operation)
|
4
|
-
@__original_operation__ =
|
6
|
+
@__original_operation__ = if operation.respond_to?(:__original_operation__)
|
7
|
+
operation.__original_operation__
|
8
|
+
else
|
9
|
+
operation
|
10
|
+
end
|
5
11
|
super(operation)
|
6
12
|
end
|
7
13
|
|
8
14
|
private
|
9
15
|
|
10
|
-
attr_reader :__original_operation__
|
11
|
-
|
12
16
|
def filtered_operation
|
13
17
|
__getobj__
|
14
18
|
end
|
data/lib/bizness/version.rb
CHANGED