Module: RecoursiveHelper

Defined in:
app/helpers/recoursive_helper.rb

Overview

A collection of helper methods used for navigation link in the admin-only section

Instance Method Summary collapse

Instance Method Details

#column(header:, **options, &block) ⇒ Object



3
4
5
6
7
8
9
# File 'app/helpers/recoursive_helper.rb', line 3

def column(header:, **options, &block)
  if @recourse_headers
    tag.th header, **options.merge(scope: :col)
  else
    tag.td **options, &block
  end
end