app/controllers/attachments_controller.rb
# Builds custom filter logic for the query builder used in the index action.
# See {QueryBuilder#initialize} for an understanding.
Builds custom filter logic for the query builder used in the index action.
See {QueryBuilder#initialize} for an understanding.
Builds custom filter logic for the query builder used in the index action . See { QueryBuilder#initialize } for an understanding .
def build_custom_logic (filter, query)
    if filter[:column] == 'joins_count'
      filter[:column] = 'attachment_joins_count'
      filter
    end
  end
def build_custom_logic ( filter , query ) if filter [ :column ] == 'joins_count' filter [ :column ] = 'attachment_joins_count' filter end end
Builds custom filter logic for the query builder used in the index action.
Builds custom filter logic for the query builder used in the index action .
filter
query