forked from Trustie/forgeplus
fixed 小程序活动
This commit is contained in:
parent
4560b9231e
commit
16fc6ebc4e
|
|
@ -10,7 +10,7 @@ class Admins::PlatformCommunicatesController < Admins::BaseController
|
|||
end
|
||||
|
||||
def applet
|
||||
location = params[:location] || "pc"
|
||||
location = params[:location] || "applet"
|
||||
sort_by = PlatformCommunicate.column_names.include?(params[:sort_by]) ? params[:sort_by] : 'order_index'
|
||||
sort_direction = %w(desc asc).include?(params[:sort_direction]) ? params[:sort_direction] : 'desc'
|
||||
q = PlatformCommunicate.where(location: location).ransack(title_cont: params[:search])
|
||||
|
|
|
|||
Loading…
Reference in New Issue