Method: CustomTable::ApplicationHelper#custom_table_user_customization_for
- Defined in:
- app/helpers/custom_table/application_helper.rb
#custom_table_user_customization_for(model, variant = nil) ⇒ Object
Prepares object of user search customization
308 309 310 311 312 |
# File 'app/helpers/custom_table/application_helper.rb', line 308 def custom_table_user_customization_for(model, variant = nil) fields_key = custom_table_fields_key(model, variant) return nil if current_user.nil? || current_user.custom_table.nil? return current_user.custom_table[fields_key]&.symbolize_keys end |