meskyanichi-make_sortable 0.1.0 → 0.1.1
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.
- data/README.rdoc +3 -0
- data/VERSION +1 -1
- data/lib/make_sortable/helpers.rb +4 -4
- data/make_sortable.gemspec +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -7,6 +7,9 @@ This plugin/gem provides an easy way to implement a simple database record sorti
|
|
7
7
|
gem sources -a http://gems.github.com
|
8
8
|
sudo gem install meskyanichi-make_sortable
|
9
9
|
|
10
|
+
==== config/environment.rb
|
11
|
+
|
12
|
+
config.gem 'meskyanichi-make_sortable', :lib => 'make_sortable'
|
10
13
|
|
11
14
|
== Simple Setup
|
12
15
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
@@ -30,7 +30,7 @@ module MakeSortable
|
|
30
30
|
{:controller => options[:controller],
|
31
31
|
:action => options[:attribute],
|
32
32
|
options[:controller].to_sym => view_options[:object].swap(view_options[:index],
|
33
|
-
view_options[:index] -1 )}, view_options[:html])
|
33
|
+
view_options[:index] -1 )}, view_options[:html] || {})
|
34
34
|
|
35
35
|
end
|
36
36
|
else
|
@@ -40,7 +40,7 @@ module MakeSortable
|
|
40
40
|
{:controller => options[:controller],
|
41
41
|
:action => options[:attribute],
|
42
42
|
options[:controller].to_sym => view_options[:object].swap(view_options[:index],
|
43
|
-
view_options[:index] -1 )}, view_options[:html])
|
43
|
+
view_options[:index] -1 )}, view_options[:html] || {})
|
44
44
|
|
45
45
|
end
|
46
46
|
end
|
@@ -55,7 +55,7 @@ module MakeSortable
|
|
55
55
|
{:controller => options[:controller],
|
56
56
|
:action => options[:attribute],
|
57
57
|
options[:controller].to_sym => view_options[:object].swap(view_options[:index],
|
58
|
-
view_options[:index] +1 )}, view_options[:html])
|
58
|
+
view_options[:index] +1 )}, view_options[:html] || {})
|
59
59
|
|
60
60
|
end
|
61
61
|
else
|
@@ -65,7 +65,7 @@ module MakeSortable
|
|
65
65
|
{:controller => options[:controller],
|
66
66
|
:action => options[:attribute],
|
67
67
|
options[:controller].to_sym => view_options[:object].swap(view_options[:index],
|
68
|
-
view_options[:index] +1 )}, view_options[:html])
|
68
|
+
view_options[:index] +1 )}, view_options[:html] || {})
|
69
69
|
|
70
70
|
end
|
71
71
|
end
|
data/make_sortable.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{make_sortable}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Michael van Rooijen", "Jeff Kreeftmeijer"]
|