Skip to content

Commit

Permalink
Remove vendored version of Rack
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Apr 25, 2009
1 parent 2d9b457 commit 16f36b6
Show file tree
Hide file tree
Showing 53 changed files with 7 additions and 5,005 deletions.
8 changes: 2 additions & 6 deletions actionpack/lib/action_controller.rb
Expand Up @@ -31,12 +31,8 @@
end
end

begin
gem 'rack', '~> 1.0.0'
require 'rack'
rescue Gem::LoadError
require 'action_controller/vendor/rack-1.0/rack'
end
gem 'rack', '~> 1.0.0'
require 'rack'

module ActionController
# TODO: Review explicit to see if they will automatically be handled by
Expand Down
4 changes: 4 additions & 0 deletions actionpack/lib/action_controller/request.rb
Expand Up @@ -95,6 +95,10 @@ def content_type
end
end

def media_type
content_type.to_s
end

# Returns the accepted MIME type for the request.
def accepts
@accepts ||= begin
Expand Down
89 changes: 0 additions & 89 deletions actionpack/lib/action_controller/vendor/rack-1.0/rack.rb

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 16f36b6

Please sign in to comment.