lib/generators/dry_crud/templates/app/helpers/crud_helper.rb
def crud_table(*attrs, &block)
    if block_given?
      list_table(*attrs, &block)
    else
      attrs = attrs_or_default(attrs) { default_attrs }
      list_table(*attrs) do |t|
         add_table_actions(t)
      end
    end
  end
# Create a table of the entries with the default or
# the passed attributes in its columns. An options hash may be given
# as the last argument.
Create a table of the entries with the default or
the passed attributes in its columns. An options hash may be given
as the last argument.
Create a table of the entries with the default or the passed attributes in its columns . An options hash may be given as the last argument .
def crud_table(*attrs, &block)
    if block_given?
      list_table(*attrs, &block)
    else
      attrs = attrs_or_default(attrs) { default_attrs }
      list_table(*attrs) do |t|
         add_table_actions(t)
      end
    end
  end
def crud_table ( * attrs , & block ) if block_given? list_table ( * attrs , & block ) else attrs = attrs_or_default ( attrs ) { default_attrs } list_table ( * attrs ) do | t | add_table_actions ( t ) end end end
Create a table of the entries with the default or
the passed attributes in its columns.
Create a table of the entries with the default or the passed attributes in its columns .
attrs
block