lib/verifly/dependent_callbacks/service.rb
def compiled_group(group_name)
        @compiled_groups_cache ||= Hash.new { |h, k| h[k] = {} }
        cache_entry = @compiled_groups_cache[group_name]
        return cache_entry[:group] if cache_entry[:digest] == digest

        cache_entry[:digest] = digest
        cache_entry[:group] = parents.map { |parent| parent.compiled_group(group_name) }
                                     .reduce(groups[group_name], &:merge)
      end
# Compiles callback group from itself and parents callback groups.
# If nothing changed, cached value taken
# @param group_name [Symbol] group name
# @return [CallbackGroup] callback group joined from all relative callback groups
Compiles callback group from itself and parents callback groups.
If nothing changed, cached value taken
Compiles callback group from itself and parents callback groups . If nothing changed cached value taken
def compiled_group(group_name)
        @compiled_groups_cache ||= Hash.new { |h, k| h[k] = {} }
        cache_entry = @compiled_groups_cache[group_name]
        return cache_entry[:group] if cache_entry[:digest] == digest
        cache_entry[:digest] = digest
        cache_entry[:group] = parents.map { |parent| parent.compiled_group(group_name) }
                                     .reduce(groups[group_name], &:merge)
      end
def compiled_group ( group_name ) @compiled_groups_cache ||= Hash . new { | h , k | h [ k ] = { } } cache_entry = @compiled_groups_cache [ group_name ] return cache_entry [ :group ] if cache_entry [ :digest ] == digest cache_entry [ :digest ] = digest cache_entry [ :group ] = parents . map { | parent | parent . compiled_group ( group_name ) } . reduce ( groups [ group_name ] , & :merge ) end
Compiles callback group from itself and parents callback groups.
Compiles callback group from itself and parents callback groups .
callback group joined from all relative callback groups
callback group joined from all relative callback groups
CallbackGroup
group_name
None