Sha256: c7a6ec26a4cc639c8607782a76c388b536ce6e06b29430a774f33274f9758fe6

Contents?: true

Size: 667 Bytes

Versions: 1

Compression:

Stored size: 667 Bytes

Contents

#          Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the Ruby license.

# require 'ramaze/tool/tidy'
# require 'ramaze/tool/localize'

module Ramaze
  module Dispatcher
    class Action

      # The response is passed to each filter by sending .call(response) to it.

      FILTER = [
        # Ramaze::Tool::Localize,
        # Ramaze::Tool::Tidy
      ]

      class << self
        def process(path)
          body = Controller.handle(path)
          response = Dispatcher.build_response(body)
          FILTER.inject(response){|r,f| f.call(r) }
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ramaze-0.1.2 lib/ramaze/dispatcher/action.rb