module Middleman
  module Pagination
    class ExtensionContext
      extend Forwardable
      
      def_delegators :app, :sitemap, :index_file, :data

      def initialize(extension)
        @extension = extension
      end
      
      def configuration
        @configuration ||= Configuration.new
      end

      def app
        @extension.app
      end
    end
  end
end
require 'forwardable'

module Middleman
  module Pagination
    class ExtensionContext
      extend Forwardable
      
      def_delegators :app, :sitemap, :index_file, :data

      def initialize(extension)
        @extension = extension
      end
      
      def configuration
        @configuration ||= Configuration.new
      end

      def app
        @extension.app
      end
    end
  end
end
Fix for uninitialized constant Forwardable
Fix for uninitialized constant Forwardable

I get the following error when running middleman with the
middleman-pagination plugin installed:

    uninitialized constant Middleman::Pagination::ExtensionContext::Forwardable (NameError)

Here is a fix.
