Method: CustomTable::ApplicationHelper#custom_table_fields_key

Defined in:
app/helpers/custom_table/application_helper.rb

#custom_table_fields_key(model, variant = nil) ⇒ Object



314
315
316
317
318
# File 'app/helpers/custom_table/application_helper.rb', line 314

def custom_table_fields_key(model, variant = nil)
  fields_key = model.model_name.to_s
  fields_key += "-#{variant}" unless variant.nil?
  return fields_key
end