Method: CustomTable::ApplicationHelper#custom_table_variants_for

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

#custom_table_variants_for(model) ⇒ Object



457
458
459
460
461
# File 'app/helpers/custom_table/application_helper.rb', line 457

def custom_table_variants_for model
  helper_name = "#{model.model_name.singular}_custom_table_variants"
  return self.send(helper_name) if self.class.method_defined?(helper_name)
  return []
end