Class: FilchController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/filch_controller.rb

Overview

The filch controller.

Instance Method Summary collapse

Instance Method Details

#datalistObject

Datalist returns data for the datalist.



4
5
6
7
8
9
10
11
12
# File 'app/controllers/filch_controller.rb', line 4

def datalist
  model, column, pq = params[:column].split('.')
  ransack_q = Filch.datalist(model, column, params[pq])
  render(
    partial: 'filch/quick',
    layout: false,
    locals: { q: ransack_q }
  )
end