mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
13 lines
225 B
Ruby
13 lines
225 B
Ruby
class PageQuery < ApplicationQuery
|
|
attr_reader :params
|
|
|
|
def initialize(params, user)
|
|
@user = user
|
|
@params = params
|
|
end
|
|
|
|
def call
|
|
pages = Page.where(user: @user).order(created_at: :desc)
|
|
pages
|
|
end
|
|
end |