list_controls 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/list_controls/action_controller.rb +5 -1
- metadata +3 -3
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'ostruct'
|
2
|
+
|
1
3
|
module ListControls
|
2
4
|
module ActionController
|
3
5
|
|
@@ -30,7 +32,9 @@ module ListControls
|
|
30
32
|
session_store[:filters] ||= default_filters
|
31
33
|
session_store[:filters].merge!(params[:filters] || {})
|
32
34
|
|
33
|
-
|
35
|
+
tmp_filters = session_store[:filters]
|
36
|
+
|
37
|
+
@filters = OpenStruct.new(tmp_filters)
|
34
38
|
|
35
39
|
session[:list_controls][self.class.to_s] = session_store
|
36
40
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: list_controls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Laurynas Butkus
|