lib/rails/graphql/helpers/with_directives.rb
# Override the +all_events+ method since callbacks can eventually be
# attached to objects that have directives, which then they need to
# be combined
Override the +all_events+ method since callbacks can eventually be
attached to objects that have directives, which then they need to
be combined
Override the + all_events + method since callbacks can eventually be attached to objects that have directives which then they need to be combined
def all_events
          Helpers::AttributeDelegator.new do
            base = defined?(super) ? super : {}
            all_directives.map(&:all_events).inject(base) do |lhash, rhash|
              Helpers.merge_hash_array(lhash, rhash)
            end
          end
        end
def all_events Helpers :: AttributeDelegator . new do base = defined? ( super ) ? super : { } all_directives . map ( & :all_events ) . inject ( base ) do | lhash , rhash | Helpers . merge_hash_array ( lhash , rhash ) end end end
Override the +all_events+ method since callbacks can eventually be
attached to objects that have directives, which then they need to
be combined
Override the + all_events + method since callbacks can eventually be attached to objects that have directives which then they need to be combined