mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
12 lines
269 B
Ruby
12 lines
269 B
Ruby
class LicensesController < ApplicationController
|
|
def index
|
|
#@licenses = License.search(params[:name]).
|
|
q = License.ransack(name_cont: params[:name])
|
|
@licenses = q.result(distinct: true)
|
|
end
|
|
|
|
def show
|
|
@license = License.find(params[:id])
|
|
end
|
|
end
|