list_controls 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/list_controls/rails_helpers.rb +1 -1
- metadata +10 -26
@@ -6,7 +6,7 @@ module ListControls
|
|
6
6
|
options[:descend_scope] ||= "descend_by_#{options[:by]}"
|
7
7
|
options[:sort_class] ||= 'sort'
|
8
8
|
|
9
|
-
current_order = filters
|
9
|
+
current_order = filters.order
|
10
10
|
|
11
11
|
ascending = current_order == options[:ascend_scope]
|
12
12
|
new_scope = ascending ? options[:descend_scope] : options[:ascend_scope]
|
metadata
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: list_controls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 3
|
10
|
-
version: 0.1.3
|
4
|
+
version: 0.1.4
|
11
5
|
platform: ruby
|
12
6
|
authors:
|
13
7
|
- Laurynas Butkus
|
@@ -15,23 +9,19 @@ autorequire:
|
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
11
|
|
18
|
-
date: 2011-01-
|
12
|
+
date: 2011-01-10 00:00:00 +02:00
|
19
13
|
default_executable:
|
20
14
|
dependencies:
|
21
15
|
- !ruby/object:Gem::Dependency
|
22
16
|
name: ruby-debug
|
23
|
-
|
24
|
-
|
25
|
-
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
20
|
requirements:
|
27
21
|
- - ">="
|
28
22
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
|
-
segments:
|
31
|
-
- 0
|
32
23
|
version: "0"
|
33
|
-
|
34
|
-
version_requirements: *id001
|
24
|
+
version:
|
35
25
|
description: Simple list filtering & sorting for Rails controller.
|
36
26
|
email: laurynas.butkus@gmail.com
|
37
27
|
executables: []
|
@@ -45,8 +35,8 @@ files:
|
|
45
35
|
- lib/list_controls/action_controller.rb
|
46
36
|
- lib/list_controls/rails_helpers.rb
|
47
37
|
- README
|
48
|
-
- MIT-LICENSE
|
49
38
|
- Rakefile
|
39
|
+
- MIT-LICENSE
|
50
40
|
has_rdoc: true
|
51
41
|
homepage: http://github.com/laurynas/list_controls
|
52
42
|
licenses: []
|
@@ -57,27 +47,21 @@ rdoc_options: []
|
|
57
47
|
require_paths:
|
58
48
|
- lib
|
59
49
|
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
-
none: false
|
61
50
|
requirements:
|
62
51
|
- - ">="
|
63
52
|
- !ruby/object:Gem::Version
|
64
|
-
hash: 3
|
65
|
-
segments:
|
66
|
-
- 0
|
67
53
|
version: "0"
|
54
|
+
version:
|
68
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
56
|
requirements:
|
71
57
|
- - ">="
|
72
58
|
- !ruby/object:Gem::Version
|
73
|
-
hash: 3
|
74
|
-
segments:
|
75
|
-
- 0
|
76
59
|
version: "0"
|
60
|
+
version:
|
77
61
|
requirements: []
|
78
62
|
|
79
63
|
rubyforge_project: "[none]"
|
80
|
-
rubygems_version: 1.3.
|
64
|
+
rubygems_version: 1.3.5
|
81
65
|
signing_key:
|
82
66
|
specification_version: 3
|
83
67
|
summary: Simple list filtering & sorting for Rails controller
|