Permalink
Browse files

update helper

  • Loading branch information...
1 parent 80ccdd9 commit 57b90b99c0f1c4bfbaddf4a611f575a4c128b657 @mischa mischa committed Jul 14, 2011
Showing with 3 additions and 1 deletion.
  1. +2 −0 TODO
  2. +1 −1 lib/datatable/helper.rb
View
2 TODO
@@ -1,3 +1,5 @@
+Update the config initializer
+
BUG: search column count doesn't include unsearchable columns and this
isn't taken into account.
View
@@ -126,7 +126,7 @@ def headings
def humanize_column(name)
columns = name.split('.')
- [columns[0].singularize, columns[1]].map(&:humanize).map(&:titleize).join(" ")
+ [columns[0].singularize, columns[1]].compact.map(&:humanize).map(&:titleize).join(" ")
end

0 comments on commit 57b90b9

Please sign in to comment.