use axis instead os subjects on new assessement page
This commit is contained in:
13
app/graphql/resolvers/axes_query_resolver.rb
Normal file
13
app/graphql/resolvers/axes_query_resolver.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
module Resolvers
|
||||
class AxesQueryResolver
|
||||
def initialize(context)
|
||||
@context = context
|
||||
end
|
||||
|
||||
def resolve
|
||||
AxisPolicy::Scope.new(@context[:current_user], Axis).resolve
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user