list_controls 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
- @filters = session_store[:filters]
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: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Laurynas Butkus