aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | use a request object in the session middlewareAaron Patterson2015-08-228-71/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit allows us to use one request object rather than allocating multiple request objects to deal with the session.
| * | | | | | move more `@env` access to method callsAaron Patterson2015-08-221-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're going to implement storing env values differently in the future, so let's disconnect these methods from the instance variables
| * | | | | | move ORIGINAL_SCRIPT_NAME to the metaprogrammed methodsAaron Patterson2015-08-221-4/+1
| | | | | | |
| * | | | | | metaprogram the HTTP_X_REQUEST_ID methodAaron Patterson2015-08-221-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | we're already doing this with a bunch of other header data.
| * | | | | | use `body_stream` instead of getting the env value ourselvesAaron Patterson2015-08-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | we have a method that knows how to get rack.input, so lets use that.
| * | | | | | convert `@env` use to get / set headerAaron Patterson2015-08-221-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | | use get / set header to avoid depending on the `env` ivarAaron Patterson2015-08-221-11/+14
| | | | | | |
| * | | | | | Merge pull request #20757 from bquorning/http-status-codes-changed-in-rackSantiago Pastorino2015-08-222-4/+14
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | Rack changed their status codes to IETF RFC 7231
| | * | | | | | 4.2 release notes about `render` status optionsBenjamin Quorning2015-08-211-0/+11
| | | | | | | |
| | * | | | | | Rack changed their status codes to IETF RFC 7231Benjamin Quorning2015-08-211-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rack/rack#754
| * | | | | | | Fix Railties test failure for asset routeseileencodes2015-08-221-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
| * | | | | | | Refactor to remove controller class from route to requesteileencodes2015-08-223-41/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]
| * | | | | | | Merge pull request #21328 from jonatack/fix-debugging-rails-guideKasper Timm Hansen2015-08-221-7/+9
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | [skip ci] Debugging Rails Guide fixes
| | * | | | | | | [skip ci] Debugging Rails Guide fixesJon Atack2015-08-221-7/+9
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fixes: "we want go deep" -> "we won't go deep" "to next next line" -> "to the next line" - Minor improvements in clarity and grammar. Cheers :)
| * | | / / / / Test against the newest stable ruby 2.2.3Akira Matsuda2015-08-221-1/+1
| | |_|/ / / / | |/| | | | |
| * | | | | | set cached values in the env hashAaron Patterson2015-08-211-6/+9
| | | | | | |
| * | | | | | stop directly accessing `@env` in mime_negotiationAaron Patterson2015-08-211-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | we want to go through methods to access `env` because in the future that ivar may not be available, or may be calculated lazily
| * | | | | | use public API to fetch the parameter filterAaron Patterson2015-08-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | now the parameter filter doesn't need to know about the env hash in these two methds.
| * | | | | | use methods on the request object to implement `fetch`Aaron Patterson2015-08-211-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Now the Headers internals don't depend on the env hash.
| * | | | | | dup the env hash on Header#envAaron Patterson2015-08-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This prevents external mutations from impacting the internals of the request or the Header object.
| * | | | | | use accessors on the request object for manipulating envAaron Patterson2015-08-211-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this reduces the API footprint for the env hash so that we can be more flexible when changing API in the future
| * | | | | | use `set_header` rather than []=Aaron Patterson2015-08-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows us to avoid calling `env_name` twice.
| * | | | | | dup the request and mutate its headers object.Aaron Patterson2015-08-212-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | duping the request will dup it's underlying env hash.
| * | | | | | JSON is still an adapter specific type.Sean Griffin2015-08-218-36/+50
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several changes were made in #21110 which I am strongly opposed to. (this is what I get for going on vacation. :trollface:) No type should be introduced into the generic `ActiveRecord::Type` namespace, and *certainly* should not be registered into the registry unconstrained unless it is supported by *all* adapters (which basically means that it was specified in the ANSI SQL standard). I do not think `# :nodoc:` ing the type is sufficient, as it still makes the code of Rails itself very unclear as to what the role of that class is. While I would argue that this shouldn't even be a super class, and that MySql and PG's JSON types are only superficially duplicated (they might look the same but will change for different reasons in the future). However, I don't feel strongly enough about it as a point of contention (and the biggest cost of harming the blameability has already occured), so I simply moved the superclass into a namespace where its role is absolutely clear. After this change, `attribute :foo, :json` will once again work with MySQL and PG, but not with Sqlite3 or any third party adapters. Unresolved questions -------------------- The types that and adapter publishes (at least those are unique to that adapter, and not adding additional behavior like `MysqlString` should probably be part of the adapter's public API. Should we standardize the namespace for these, and document them?
| * | | | | Move the CoC text to the Rails websiteGodfrey Chan2015-08-212-16/+6
| | | | | |
| * | | | | Remove unnecessary cachingeileencodes2015-08-211-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `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.
| * | | | | pass a request object to the headers objectAaron Patterson2015-08-214-13/+19
| | | | | |
| * | | | | move header allocation to a helper methodAaron Patterson2015-08-211-5/+9
| | |/ / / | |/| | | | | | | | | | | | | | | | | | I'm going to change the constructor, so it's easier to do it in one place.
| * | | | Merge pull request #21106 from amitsuroliya/fix_routing_testAndrew White2015-08-211-6/+0
| |\ \ \ \ | | | | | | | | | | | | Remove duplicity in tests
| | * | | | Remove duplicity in testsamitkumarsuroliya2015-08-031-6/+0
| | | | | |
| * | | | | better docs for `disable_ddl_transaction!`. Closes #21044.Yves Senn2015-08-211-1/+4
| | | | | |
| * | | | | Merge pull request #21312 from piton4eg/patch-7Yves Senn2015-08-211-12/+6
| |\ \ \ \ \ | | |_|/ / / | |/| | | | Small fixes [ci skip]
| | * | | | Add bold to lists' titles [ci skip]Alexey Markov2015-08-211-6/+6
| | | | | |
| | * | | | Small fixes [ci skip]Alexey Markov2015-08-201-12/+6
| | | | | |
| * | | | | Merge pull request #21313 from reshleman/re-punctuationYves Senn2015-08-211-2/+2
| |\ \ \ \ \ | | | | | | | | | | | | | | Fix Punctuation in `AutosaveAssociation` RDoc [ci skip]
| | * | | | | Fix Punctuation in `AutosaveAssociation` RDocRobert Eshleman2015-08-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | [ci skip]
| * | | | | | set route precedence at allocation timeAaron Patterson2015-08-202-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This way we can make the Route object a read-only data structure.
| * | | | | | argh!!!Aaron Patterson2015-08-203-0/+3
| | | | | | |
| * | | | | | smooth move aaron.... :bomb:Aaron Patterson2015-08-201-2/+2
| | | | | | |
| * | | | | | point at rack masterAaron Patterson2015-08-206-31/+34
| |/ / / / /
| * | | | | Merge pull request #21306 from ronakjangir47/remove_mocha_actionmailerKasper Timm Hansen2015-08-204-55/+100
| |\ \ \ \ \ | | |/ / / / | |/| | | | Removed mocha from ActionMailer
| | * | | | Removed mocha from ActionMailerRonak Jangir2015-08-204-55/+100
| | | | | |
| * | | | | Merge pull request #16245 from byroot/more-atomic-writeMatthew Draper2015-08-211-27/+29
| |\ \ \ \ \ | | | | | | | | | | | | | | File renaming should be the last operation of an atomic write
| | * | | | | File renaming should be the last operation of an atomic writeJean Boussier2015-08-201-27/+29
| | | | | | |
| * | | | | | Merge pull request #21310 from y-yagi/fix_file_pathYves Senn2015-08-201-1/+1
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | fix path of annotations.rake [ci skip]
| | * | | | | | fix path of annotations.rake [ci skip]yuuji.yaginuma2015-08-201-1/+1
| |/ / / / / /
| * | | | | | uniqueness validation raises error for persisted record without pk.Yves Senn2015-08-204-4/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #21304. While we can validate uniqueness for record without primary key on creation, there is no way to exclude the current record when updating. (The update itself will need a primary key to work correctly).
| * | | | | | Merge pull request #21300 from jonahb/cacheYves Senn2015-08-201-1/+1
| |\ \ \ \ \ \ | | |_|/ / / / | |/| | | | | Correct cache store superclass in comment [ci skip]
| | * | | | | Correct cache store superclass in commentJonah Burke2015-08-191-1/+1
| | | | | | |
| * | | | | | Merge pull request #21279 from ronakjangir47/test_cleanupKasper Timm Hansen2015-08-205-45/+30
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | Cleaned up generators tests using internal assertion helper