active_scaffold_config_list 3.2.2.2 → 3.2.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -60,12 +60,14 @@ module ActiveScaffold::Actions
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def list_columns
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
63
|
+
@list_columns ||= begin
|
64
|
+
columns = super
|
65
|
+
if !config_list_params.nil? && config_list_params.is_a?(Array)
|
66
|
+
config_list = Hash[config_list_params.each_with_index.map{|c,i| [c,i]}]
|
67
|
+
columns.select{|column| config_list.include? column.name}.sort{|x,y| config_list[x.name] <=> config_list[y.name]}
|
68
|
+
else
|
69
|
+
columns
|
70
|
+
end
|
69
71
|
end
|
70
72
|
end
|
71
73
|
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scaffold_config_list
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
|
11
|
-
version: 3.2.2.2
|
9
|
+
- 3
|
10
|
+
version: 3.2.3
|
12
11
|
platform: ruby
|
13
12
|
authors:
|
14
13
|
- Sergio Cambra
|
@@ -16,29 +15,26 @@ autorequire:
|
|
16
15
|
bindir: bin
|
17
16
|
cert_chain: []
|
18
17
|
|
19
|
-
date: 2013-
|
18
|
+
date: 2013-05-28 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
22
|
none: false
|
25
23
|
requirements:
|
26
24
|
- - ">="
|
27
25
|
- !ruby/object:Gem::Version
|
28
|
-
hash:
|
26
|
+
hash: 11
|
29
27
|
segments:
|
30
28
|
- 3
|
31
29
|
- 3
|
32
30
|
- 0
|
33
|
-
|
34
|
-
- 3
|
35
|
-
version: 3.3.0.rc3
|
36
|
-
version_requirements: *id001
|
31
|
+
version: 3.3.0
|
37
32
|
prerelease: false
|
33
|
+
type: :runtime
|
34
|
+
requirement: *id001
|
38
35
|
name: active_scaffold
|
39
36
|
- !ruby/object:Gem::Dependency
|
40
|
-
|
41
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
42
38
|
none: false
|
43
39
|
requirements:
|
44
40
|
- - ">="
|
@@ -49,8 +45,9 @@ dependencies:
|
|
49
45
|
- 2
|
50
46
|
- 2
|
51
47
|
version: 3.2.2
|
52
|
-
version_requirements: *id002
|
53
48
|
prerelease: false
|
49
|
+
type: :runtime
|
50
|
+
requirement: *id002
|
54
51
|
name: active_scaffold_sortable
|
55
52
|
description: User may reorder and hide/show list columns
|
56
53
|
email: activescaffold@googlegroups.com
|
@@ -102,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
99
|
requirements: []
|
103
100
|
|
104
101
|
rubyforge_project:
|
105
|
-
rubygems_version: 1.8.
|
102
|
+
rubygems_version: 1.8.19
|
106
103
|
signing_key:
|
107
104
|
specification_version: 3
|
108
105
|
summary: User specific column configuration for ActiveScaffold
|