| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
I want to implement this with something besides `@env` in the future, so
lets stop directly referencing it.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
superclass already has this method, so remove this one
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
the dispatcher class isn't configurable anymore, so pull up allocation
to the method that needs it.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Now that we don't have subclasses depending on this method (they augment
the request class instead of the dispatch class) we can remove this
method and directly ask the request object for the controller class
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
We should keep the route set generation logic in one place
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
we don't need it anymore. We always use the same dispatcher in tests.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
If we subclass and augment the superclass, then we don't need to have
setters for particular things on the superclass.
|
| | | | | |
| | | | | |
| | | | | | |
`:nail_care:`
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
controller class resolution has been moved to the request object, so we
should override that method instead of relying on the RouteSet to
generate the controller class.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Remove unused block arguments
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| |_|_|_|/ / /
|/| | | | | | |
Remove unused variables
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
Get rid of mocha tests in actionpack - part 1
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
we already have a request, so we should use the methods on the request
to access the path info information
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Creates fewer request objects and helps to abstract away from internals
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| |_|_|/ / /
|/| | | | |
| | | | | |
| | | | | |
| | | | | | |
try to remove dependencies on `@env` so we can have more flexible
internals
|
| |/ / / /
|/| | | |
| | | | |
| | | | | |
May be missed in 5fe141638f1243ac6ae187ae14aa398b4c1875a2 commit
Also fixes the broken build
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This commit allows us to use one request object rather than allocating
multiple request objects to deal with the session.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
We're going to implement storing env values differently in the future,
so let's disconnect these methods from the instance variables
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
we're already doing this with a bunch of other header data.
|
| | | | |
| | | | |
| | | | |
| | | | | |
we have a method that knows how to get rack.input, so lets use that.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
We need to abstract the internals of the request object away from this
instance variable so that the values for `@env` can be calculated in a
different way.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Since none of the action pack tests failed without this conditional it
didn't seem necessary. This fixes the build because it correctly returns
a 404 instead of a 500 for the asset routes test.
Test that was failing was in the `assets_test.rb` file and was the test
named `test_assets_routes_are_not_drawn_when_compilation_is_disabled`.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This refactoring moves the controller class name that was on the route
set to the request. The purpose of this refactoring is for changes we
need to move controller tests to integration tests, mainly being able to
access the controller on the request instead of having to go through
the router.
[Eileen M. Uchitelle & Aaron Patterson]
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
we want to go through methods to access `env` because in the future that
ivar may not be available, or may be calculated lazily
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
now the parameter filter doesn't need to know about the env hash in
these two methds.
|
| | | | |
| | | | |
| | | | |
| | | | | |
Now the Headers internals don't depend on the env hash.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This prevents external mutations from impacting the internals of the
request or the Header object.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
this reduces the API footprint for the env hash so that we can be more
flexible when changing API in the future
|
| | | | |
| | | | |
| | | | |
| | | | | |
This allows us to avoid calling `env_name` twice.
|
|/ / / /
| | | |
| | | |
| | | | |
duping the request will dup it's underlying env hash.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
`ActiveSupport::Dependencies.constantize(const_name)` calls
`Reference.new` which is defined as
`ActiveSupport::Dependencies.constantize(const_name)` meaning this call
is already cached and we're doing caching that isn't necessary.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
I'm going to change the constructor, so it's easier to do it in one
place.
|
|\ \ \ \
| | | | |
| | | | | |
Remove duplicity in tests
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
This way we can make the Route object a read-only data structure.
|
| | | | | |
|