Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove unused available? method for columns.

  • Loading branch information...
commit 80d50d2de1d3591742ed6680dc4babd55ec64795 1 parent 2a54038
@bobbytables authored
Showing with 0 additions and 12 deletions.
  1. +0 −12 lib/table_cloth/column.rb
View
12 lib/table_cloth/column.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.