Permalink
Browse files

Remove Request::Routed

  • Loading branch information...
1 parent 2b559ad commit d569f876c3a90495231813a227973179f20814ba @mbj committed Jul 1, 2013
Showing with 1 addition and 33 deletions.
  1. +1 −13 lib/request.rb
  2. +0 −20 lib/request/routed.rb
View
@@ -10,7 +10,7 @@
class Request
KEYS = %W(
- path_info protocol port request_method
+ path_info protocol port request_method
host if_modified_since query_params query_params_hash
query_string content_length content_type body
).map(&:to_sym).freeze
@@ -133,18 +133,6 @@ def absolute_uri_path(path)
"#{root_uri}#{path}"
end
- # Return routed request
- #
- # @param [Hash] params
- #
- # @return [Request::Routed]
- #
- # @api private
- #
- def route(params)
- Routed.new(self, params)
- end
-
# Return root uri
#
# @return [String]
View
@@ -1,20 +0,0 @@
-class Request
- # A routed request with routing params
- #
- # FIXME: I do not like this, need to come up with something much better!
- #
- # Violates LSP.
- #
- # Remove this once "Dispatch" class in Joy is ready.
- #
- class Routed < self
- include Concord::Public.new(:request, :routing_params)
-
- METHODS.each do |name|
- define_method(name) do
- @request.public_send(name)
- end
- end
- end
-end
-

0 comments on commit d569f87

Please sign in to comment.