修改current_user
This commit is contained in:
parent
b64d910525
commit
9f59c1b421
|
@ -1,11 +1,12 @@
|
||||||
class Projects::ListMyQuery < ApplicationQuery
|
class Projects::ListMyQuery < ApplicationQuery
|
||||||
|
|
||||||
attr_reader :params
|
attr_reader :params, :current_user
|
||||||
|
|
||||||
# sort_columns :updated_on, :created_on, :forked_count, :praises_count, default_by: :updated_on, default_direction: :desc
|
# sort_columns :updated_on, :created_on, :forked_count, :praises_count, default_by: :updated_on, default_direction: :desc
|
||||||
|
|
||||||
def initialize(params)
|
def initialize(params,current_user)
|
||||||
@params = params
|
@params = params
|
||||||
|
@current_user = current_user
|
||||||
end
|
end
|
||||||
|
|
||||||
def call
|
def call
|
||||||
|
|
Loading…
Reference in New Issue