lib/ajax-datatables-rails/alt-api/datatable.rb
# This is the primary ActiveRecord model the datatable represents.
# For example, if you have writing a UserDatatable, and that is
# a list of User records, 'User' would be the base model.
This is the primary ActiveRecord model the datatable represents.
For example, if you have writing a UserDatatable, and that is
a list of User records, 'User' would be the base model.
This is the primary ActiveRecord model the datatable represents . For example if you have writing a UserDatatable and that is a list of User records ' User ' would be the base model .
def search_only_attributes(attrs)
          attrs.each do |attr|
            key_name = :"search_only__#{attr.downcase.tr('.', '_')}"
            columns << ColumnDef.new(key_name, source: attr, search_only: true)
          end
        end
def search_only_attributes ( attrs ) attrs . each do | attr | key_name = :" search_only__ #{ attr . downcase . tr ( '.' , '_' ) } " columns << ColumnDef . new ( key_name , source : attr , search_only : true ) end end
This is the primary ActiveRecord model the datatable represents.
This is the primary ActiveRecord model the datatable represents .
attrs