2020-03-09 00:40:16 +08:00
|
|
|
class LicensesController < ApplicationController
|
|
|
|
def index
|
2020-05-09 17:14:23 +08:00
|
|
|
#@licenses = License.search(params[:name]).
|
|
|
|
q = License.ransack(name_cont: params[:name])
|
|
|
|
@licenses = q.result(distinct: true)
|
2020-03-09 00:40:16 +08:00
|
|
|
end
|
|
|
|
end
|