forgeplus/app/controllers/ignores_controller.rb

8 lines
220 B
Ruby
Raw Normal View History

2020-03-09 00:40:16 +08:00
class IgnoresController < ApplicationController
def index
#@ignores = Ignore.search(params[:name]).without_content
q = Ignore.ransack(name_cont: params[:name])
@ignores = q.result(distinct: true)
2020-03-09 00:40:16 +08:00
end
end