Permalink
Browse files

Remove unused available? method for columns.

  • Loading branch information...
1 parent 2a54038 commit 80d50d2de1d3591742ed6680dc4babd55ec64795 @bobbytables committed Dec 17, 2012
Showing with 0 additions and 12 deletions.
  1. +0 −12 lib/table_cloth/column.rb
View
@@ -18,17 +18,5 @@ def value(object, view, table=nil)
def human_name
options[:label] || name.to_s.humanize
end
-
- def available?(table)
- if options[:if] && options[:if].is_a?(Symbol)
- return !!table.send(options[:if])
- end
-
- if options[:unless] && options[:unless].is_a?(Symbol)
- return !table.send(options[:unless])
- end
-
- true
- end
end
end

0 comments on commit 80d50d2

Please sign in to comment.