lib/rails/graphql/request/helpers/directives.rb
# Get the list of events from directives set during the request only and
# then caches it by request
Get the list of events from directives set during the request only and
then caches it by request
Get the list of events from directives set during the request only and then caches it by request
def all_events
          @all_events ||= directives.map(&:all_events).inject({}) do |lhash, rhash|
            Helpers.merge_hash_array(lhash, rhash)
          end
        end
def all_events @all_events ||= directives . map ( & :all_events ) . inject ( { } ) do | lhash , rhash | Helpers . merge_hash_array ( lhash , rhash ) end end
Get the list of events from directives set during the request only and
then caches it by request
Get the list of events from directives set during the request only and then caches it by request