lib/rails/graphql/helpers/with_events.rb
# Auxiliar method that creates easy-accessible callback assignment
Auxiliar method that creates easy-accessible callback assignment
Auxiliar method that creates easy - accessible callback assignment
def expose_events!(*list)
              list.each do |event_name|
                next if method_defined?(event_name)
                define_method(event_name) do |*args, **xargs, &block|
                  on(event_name, *args, **xargs, &block)
                end
              end
            end
def expose_events! ( * list ) list . each do | event_name | next if method_defined? ( event_name ) define_method ( event_name ) do | * args , ** xargs , & block | on ( event_name , * args , ** xargs , & block ) end end end
Auxiliar method that creates easy-accessible callback assignment
Auxiliar method that creates easy - accessible callback assignment
list