Sha256: 722373f5ef5c34841b21f429fe95f904fd46af01da55cd3afcd0ba8f5c737f08

Contents?: true

Size: 319 Bytes

Versions: 6

Compression:

Stored size: 319 Bytes

Contents

module Locomotive::Builder
  class Server

    class NotFound < Middleware

      def call(env)
        self.set_accessors(env)

        if self.page.nil?
          self.log "Page not found"
          env['builder.page'] = self.mounting_point.pages['404']
        end

        app.call(env)
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
locomotivecms_builder-1.0.0.alpha8 lib/locomotive/builder/server/not_found.rb
locomotivecms_builder-1.0.0.alpha7 lib/locomotive/builder/server/not_found.rb
locomotivecms_builder-1.0.0.alpha6 lib/locomotive/builder/server/not_found.rb
locomotivecms_builder-1.0.0.alpha5 lib/locomotive/builder/server/not_found.rb
locomotivecms_builder-1.0.0.alpha4 lib/locomotive/builder/server/not_found.rb
locomotivecms_builder-1.0.0.alpha3 lib/locomotive/builder/server/not_found.rb