lib/rails/graphql/callback.rb
# Call the callback block as a symbol
Call the callback block as a symbol
Call the callback block as a symbol
def call_symbol(event, *args, **xargs)
          event.on_instance(owner) do |instance|
            block = instance.method(@block)
            args, xargs = collect_parameters(event, [args, xargs], block)
            block.call(*args, **xargs)
          end
        end
def call_symbol ( event , * args , ** xargs ) event . on_instance ( owner ) do | instance | block = instance . method ( @block ) args , xargs = collect_parameters ( event , [ args , xargs ] , block ) block . call ( * args , ** xargs ) end end
Call the callback block as a symbol
Call the callback block as a symbol
event
args
xargs