lib/facades/builders/table.rb in facades-0.0.6 vs lib/facades/builders/table.rb in facades-0.0.7
- old
+ new
@@ -13,10 +13,10 @@
##
# Get a list of all headings for the table
# Use the resource class's table_headings method first, options hash next
#
def headings
- return resource_class.table_attributes if resource_class.respond_to?(:table_headings)
+ return resource_class.table_attributes if resource_class.respond_to?(:table_attributes)
[options[:headings]].flatten.compact
end
##
# The class for this resource
\ No newline at end of file