app/models/effective/effective_datatable/resource.rb in effective_datatables-3.3.3 vs app/models/effective/effective_datatable/resource.rb in effective_datatables-3.3.4

- old
+ new

@@ -37,9 +37,10 @@ opts[:resource] = Effective::Resource.new(resource.associated(associated), namespace: controller_namespace) if opts[:resource].column(field) opts[:as] ||= opts[:resource].sql_type(field) + opts[:as] = :integer if opts[:resource].sql_type(field) == :belongs_to && field.end_with?('_id') opts[:sql_column] = opts[:resource].sql_column(field) if opts[:sql_column].nil? opts[:resource].sort_column = field opts[:resource].search_columns = field end