actionset 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +2 -0
- data/lib/action_set.rb +6 -2
- data/lib/action_set/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5026afa544f9def59209497c089522877b6ab900
|
4
|
+
data.tar.gz: 3bfbd8ff3930d022ac45e8680390ad9a42c4406c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f78f95e0cf017f4a22dd8339cfb2338d4ca8c01c97a3d68d7f7200895e74572073be94bc1756fc115cee336660738f8988354275e794d5280b6c70028ecddf0a
|
7
|
+
data.tar.gz: e165d731e37993c0a92a3d407642d7823dbaaf5414ae137a5d11fbdf1bb64bdfdb7c859c6c1cfae11acfcc596dc852b5957d336137dfa8330fec22b06d3b9bfd
|
data/CHANGELOG
CHANGED
data/lib/action_set.rb
CHANGED
@@ -34,8 +34,7 @@ module ActionSet
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def filter_set(set)
|
37
|
-
|
38
|
-
object_class: Filter)
|
37
|
+
set_filters_ivar
|
39
38
|
active_set = set.is_a?(ActiveSet) ? set : ActiveSet.new(set)
|
40
39
|
active_set = active_set.filter(filter_structure) if filter_params.any?
|
41
40
|
active_set
|
@@ -54,6 +53,11 @@ module ActionSet
|
|
54
53
|
send_data(transformed_data, export_set_options(request.format))
|
55
54
|
end
|
56
55
|
|
56
|
+
def set_filters_ivar
|
57
|
+
@filters = JSON.parse(filter_params.to_json,
|
58
|
+
object_class: Filter)
|
59
|
+
end
|
60
|
+
|
57
61
|
private
|
58
62
|
|
59
63
|
def filter_params
|
data/lib/action_set/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionset
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Margheim
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeset
|