# File lib/brakeman/processors/controller_alias_processor.rb, line 38
  def process_mixins
    controller = @tracker.controllers[@current_class]

    controller.includes.each do |i|
      mixin = @tracker.libs[i]

      next unless mixin

      #Process methods in alphabetical order for consistency
      methods = mixin.methods_public.keys.map { |n| n.to_s }.sort.map { |n| n.to_sym }

      methods.each do |name|
        #Need to process the method like it was in a controller in order
        #to get the renders set
        processor = Brakeman::ControllerProcessor.new(@app_tree, @tracker)
        method = mixin.get_method(name)[:src].deep_clone

        if node_type? method, :defn
          method = processor.process_defn method
        else
          #Should be a defn, but this will catch other cases
          method = processor.process method
        end

        @file_name = mixin.file
        #Then process it like any other method in the controller
        process method
      end
    end
  end