You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- 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
|