Module: Adminterface::Extensions::Views::Components::TableFor

Defined in:
lib/adminterface/extensions/views/components/table_for.rb

Instance Method Summary collapse

Instance Method Details

#build(obj, *attrs) ⇒ Object



6
7
8
9
10
11
# File 'lib/adminterface/extensions/views/components/table_for.rb', line 6

def build(obj, *attrs)
  options = attrs.extract_options!
  options[:class] = "table_for #{options[:class]} #{table_for_css_classes}".squish
  attrs = attrs.push options
  super(obj, *attrs)
end