Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Pull `plain` content type handling up to `render` | Aaron Patterson | 2015-08-26 | 3 | -9/+6 |
| | | | | | `render` is the only possible source for the `plain` option. Pulling the conditional up to the `render` method removes far away conditionals | ||||
* | stop passing the options hash to `_process_format` | Aaron Patterson | 2015-08-26 | 3 | -5/+5 |
| | | | | | | We don't need to pass the full hash just to pull one value out. It's better to just pass the value that the method needs to know about so that we can abstract it away from "options" | ||||
* | remove RackDelegation module | Aaron Patterson | 2015-08-26 | 14 | -74/+16 |
| | | | | | | Since all controller instances are required to have a request and response object, RackDelegation is no longer needed (we always have to delegate to the response) | ||||
* | remove useless method | Aaron Patterson | 2015-08-26 | 1 | -5/+0 |
| | | | | | the subclass sets the body on the response object, so we don't need the superclass doing it too | ||||
* | include ActionView::Rendering in the minimal controller | Aaron Patterson | 2015-08-26 | 2 | -1/+2 |
| | | | | without this module, the content type is not set correctly | ||||
* | Merge pull request #21387 from ronakjangir47/remove_dup_minitest | Kasper Timm Hansen | 2015-08-26 | 5 | -7/+0 |
|\ | | | | | Removed duplicate require 'minitest/mock' | ||||
| * | Removed duplicate requiring minitest/mock as it is already required in ↵ | Ronak Jangir | 2015-08-26 | 5 | -7/+0 |
| | | | | | | | | method_call_assertions | ||||
* | | `headers` should delegate to the response object | Aaron Patterson | 2015-08-26 | 1 | -1/+2 |
| | | |||||
* | | remove useless status set | Aaron Patterson | 2015-08-26 | 1 | -2/+0 |
| | | | | | | | | | | | | Now that `Controller#status=` just delegates to the response object, we don't need to set the response on the controller and the response. We can just set it in one place. | ||||
* | | remove useless conditional | Aaron Patterson | 2015-08-26 | 1 | -1/+1 |
| | | | | | | | | we always have a response object, so there is no reason to test it | ||||
* | | remove ivars from the "protected" list | Aaron Patterson | 2015-08-26 | 1 | -1/+1 |
| | | | | | | | | these ivars don't exist anymore, so we can remove them from the list | ||||
* | | use the content_type method on the request object | Aaron Patterson | 2015-08-26 | 1 | -1/+1 |
| | | | | | | | | | | since the controller always has a request on it, we can just ask the request for the content type. | ||||
* | | ask the response for the status | Aaron Patterson | 2015-08-26 | 1 | -3/+2 |
| | | | | | | | | | | | | The controller instance always has an instance of a response object. We should store the status code on the response object so that it's only store in one place. | ||||
* | | remove useless conditional | Aaron Patterson | 2015-08-26 | 1 | -1/+1 |
| | | | | | | | | | | We always have a response object in controller instances, so we can remove this conditional | ||||
* | | remove useless conditional | Aaron Patterson | 2015-08-26 | 1 | -1/+1 |
| | | | | | | | | | | controller instances always have a response object, so we don't need to test to see if there is one, just always call to_a on the response. | ||||
* | | Merge pull request #21386 from ronakjangir47/remove_dups | Rafael Mendonça França | 2015-08-26 | 4 | -4/+0 |
|\ \ | | | | | | | Removed duplicate requires | ||||
| * | | Removed duplicate require ‘models/computer’ | Ronak Jangir | 2015-08-26 | 4 | -4/+0 |
| |/ | |||||
* | | Merge pull request #21336 from yui-knk/refactor/to_use_getter | Rafael Mendonça França | 2015-08-26 | 1 | -7/+7 |
|\ \ | | | | | | | Use `ActiveRecord::Migration#connection` instead of `@connection` | ||||
| * | | Use `ActiveRecord::Migration#connection` instead of `@connection` | yui-knk | 2015-08-23 | 1 | -7/+7 |
| | | | | | | | | | | | | | | | `ActiveRecord::Migration` has `connetion` method so replace to use `connection` method to get `@connection` as much as possible | ||||
* | | | Merge pull request #21382 from akihiro17/fix-test | Yves Senn | 2015-08-26 | 1 | -1/+0 |
|\ \ \ | | | | | | | | | Fix the unused variable warning | ||||
| * | | | Fix the unused variable warning | akihiro17 | 2015-08-26 | 1 | -1/+0 |
|/ / / | | | | | | | | | | | | | | | | | | | | | | This fixes the following warning. ```ruby warning: assigned but unused variable - index_definition ``` | ||||
* | | | Merge pull request #21380 from ronakjangir47/fix_docs | Yves Senn | 2015-08-26 | 1 | -2/+3 |
|\ \ \ | |_|/ |/| | | Fixed to_datetime docs [ci skip] | ||||
| * | | Fixed to_datetime docs [ci skip] | Ronak Jangir | 2015-08-26 | 1 | -2/+3 |
|/ / | |||||
* | | provide a request and response to all controllers | Aaron Patterson | 2015-08-25 | 10 | -39/+49 |
| | | | | | | | | | | | | | | | | | | | | Controllers should always have a request and response when responding. Since we make this The Rule(tm), then controllers don't need to be somewhere in limbo between "asking a response object for a rack response" or "I, myself contain a rack response". This duality leads to conditionals spread through the codebase that we can delete: * https://github.com/rails/rails/blob/85a78d9358aa728298cd020cdc842b55c16f9549/actionpack/lib/action_controller/metal.rb#L221-L223 | ||||
* | | :snip: whitespace | Aaron Patterson | 2015-08-25 | 1 | -2/+2 |
| | | |||||
* | | Fix another rack SPEC violation | Aaron Patterson | 2015-08-25 | 1 | -1/+1 |
| | | |||||
* | | rack SPEC doesn't allow `first` on the body | Aaron Patterson | 2015-08-25 | 1 | -8/+12 |
| | | | | | | | | collect the body and make assert against the collected body | ||||
* | | move response allocation to the class level | Aaron Patterson | 2015-08-25 | 2 | -8/+22 |
| | | | | | | | | | | | | we don't need an instance to figure out what type of response to allocate. Later we'll pull this up the stack and pass the response object down | ||||
* | | adding a direct dispatch method to controller classes | Aaron Patterson | 2015-08-25 | 3 | -9/+13 |
| | | | | | | | | This saves a lambda and request allocation on each request. | ||||
* | | always dispatch to controllers the same way | Aaron Patterson | 2015-08-25 | 3 | -7/+26 |
| | | | | | | | | | | controllers should always go through the `action` class method so that their middleware is respected. | ||||
* | | always return a controller class from the `controller_class` method | Aaron Patterson | 2015-08-25 | 2 | -9/+14 |
| | | | | | | | | | | now the caller can just treat it like a regular controller even though it will return a 404 | ||||
* | | Merge pull request #21377 from ronakjangir47/remove_mocha_active_record | Kasper Timm Hansen | 2015-08-25 | 12 | -119/+153 |
|\ \ | | | | | | | Removed mocha from Active Record Part 1 | ||||
| * | | Removed mocha from Active Record Part 1 | Ronak Jangir | 2015-08-25 | 12 | -119/+153 |
| | | | |||||
* | | | Merge pull request #21368 from rodzyn/remove_mocha | Kasper Timm Hansen | 2015-08-25 | 5 | -163/+209 |
|\ \ \ | | | | | | | | | Get rid of mocha tests in actionpack - part 2 | ||||
| * | | | Get rid of mocha tests - part 2 | Marcin Olichwirowicz | 2015-08-25 | 5 | -163/+209 |
| | | | | |||||
* | | | | Merge pull request #21257 from jdantonio/async-job | Kasper Timm Hansen | 2015-08-25 | 13 | -4/+183 |
|\ \ \ \ | | | | | | | | | | | Initial implementation of ActiveJob AsyncAdapter. | ||||
| * | | | | Initial implementation of ActiveJob AsyncAdapter. | Jerry D'Antonio | 2015-08-25 | 13 | -4/+183 |
| | | | | | |||||
* | | | | | Merge pull request #21281 from ronakjangir47/added_docs | Rafael Mendonça França | 2015-08-25 | 1 | -1/+10 |
|\ \ \ \ \ | |/ / / / |/| | | | | Added docs for TimeWithZone [ci skip] | ||||
| * | | | | Added docs for TimeWithZone [ci skip] | Ronak Jangir | 2015-08-18 | 1 | -1/+10 |
| | | | | | |||||
* | | | | | Merge pull request #21324 from Gaurav2728/gaurav-xml_serialization_doc_fix | Rafael Mendonça França | 2015-08-25 | 1 | -5/+3 |
|\ \ \ \ \ | | | | | | | | | | | | | discard xml Serialization documentation that is no longer available [… | ||||
| * | | | | | discard xml Serialization documentation that is no longer available [ci skip] | Gaurav Sharma | 2015-08-22 | 1 | -5/+3 |
| | | | | | | |||||
* | | | | | | Merge pull request #21375 from rodzyn/unused_requires | Rafael Mendonça França | 2015-08-25 | 1 | -2/+0 |
|\ \ \ \ \ \ | | | | | | | | | | | | | | | Remove unused requires | ||||
| * | | | | | | Remove unused requires | Marcin Olichwirowicz | 2015-08-25 | 1 | -2/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | They are already required in `actionpack/lib/action_dispatch.rb` (L25-L26) | ||||
* | | | | | | | Merge pull request #21366 from amitsuroliya/remove_unused_variable | Rafael Mendonça França | 2015-08-25 | 2 | -13/+13 |
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | Remove more unused block arguments | ||||
| * | | | | | | Remove more unused block arguments | amitkumarsuroliya | 2015-08-25 | 2 | -13/+13 |
| | | | | | | | |||||
* | | | | | | | Merge pull request #21374 from rodzyn/protected_not_needed | Rafael Mendonça França | 2015-08-25 | 1 | -3/+1 |
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | Make `assert_index` private | ||||
| * | | | | | | | Make `assert_index` private | Marcin Olichwirowicz | 2015-08-25 | 1 | -3/+1 |
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This `protected` keyword looks like some leftover, since we are not using explicit receiver, this should go under `private` | ||||
* | | | | | | | Merge pull request #21345 from aditya-kapoor/trim-ap | Rafael Mendonça França | 2015-08-25 | 2 | -6/+4 |
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | Trim out least needed controllers from AP test suite | ||||
| * | | | | | | Trim out unneeded controllers from AP test suite | Aditya Kapoor | 2015-08-24 | 2 | -6/+4 |
| | | | | | | | |||||
* | | | | | | | Merge pull request #21372 from yui-knk/fix/revert_change_column_default | Santiago Pastorino | 2015-08-25 | 2 | -8/+41 |
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | Make `change_column_default` to work |