blocks 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/blocks/_table.html.erb +1 -1
- metadata +2 -2
@@ -26,7 +26,7 @@
|
|
26
26
|
<% table.columns.each do |column| %>
|
27
27
|
<% header_html = options.merge(column.options)[:header_html] %>
|
28
28
|
<% if options.merge(column.options)[:sortable] %>
|
29
|
-
<% sort_class = params[:order] != column.options[:order].to_s ? "sorting" : (params[:sort_mode] == "desc" ? "sorting_desc" : "sorting_asc") %>
|
29
|
+
<% sort_class = params[:order] != column.options[:order].try(:to_s) ? "sorting" : (params[:sort_mode] == "desc" ? "sorting_desc" : "sorting_asc") %>
|
30
30
|
<% header_html[:class] ||= "" %>
|
31
31
|
<% header_html[:class] += " #{sort_class}" %>
|
32
32
|
<% end %>
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: blocks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.2.
|
5
|
+
version: 1.2.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Andrew Hunter
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2011-04-
|
14
|
+
date: 2011-04-26 00:00:00 -04:00
|
15
15
|
default_executable:
|
16
16
|
dependencies: []
|
17
17
|
|