app/models/effective/effective_datatable/options.rb in effective_datatables-2.2.11 vs app/models/effective/effective_datatable/options.rb in effective_datatables-2.3.0
- old
+ new
@@ -66,10 +66,12 @@
else
:belongs_to
end
elsif has_manys.key?(name)
:has_many
+ elsif cols[name][:bulk_actions_column]
+ :bulk_actions_column
elsif name.include?('_address') && (collection_class.new rescue nil).respond_to?(:effective_addresses)
:effective_address
elsif name == 'id' || name.include?('year') || name.include?('_id')
:non_formatted_integer
elsif sql_column.try(:type).present?
@@ -193,9 +195,11 @@
end
when :datetime
{type: :datetime}
when :date
{type: :date}
+ when :bulk_actions_column
+ {type: :bulk_actions_column}
else
{type: :string}
end.merge(filter.symbolize_keys)
end