Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #19352 from artofhuman/master | Rafael Mendonça França | 2015-03-16 | 1 | -0/+1 |
|\ | | | | | Move Adapter to private constant | ||||
| * | Move Adapter to private constant | Semyon Pupkov | 2015-03-16 | 1 | -0/+1 |
| | | |||||
* | | Merge pull request #19357 from boddhisattva/custom_rake_task_with_args_example | Abdelkader Boudih | 2015-03-16 | 1 | -2/+2 |
|\ \ | |/ |/| | Adds more clarity on how to use custom rake tasks with arguments passed to it [ci skip] | ||||
| * | Adds an example of how to access the arguments passed to a custom rake task ↵ | Mohnish G J | 2015-03-16 | 1 | -2/+2 |
|/ | | | | [ci skip] | ||||
* | Merge pull request #19345 from davydovanton/doc-fix-spell-guides | Xavier Noria | 2015-03-15 | 2 | -2/+2 |
|\ | | | | | [skip ci] Fix typos in guides | ||||
| * | [skip ci] Fix typos in guides | Anton Davydov | 2015-03-15 | 2 | -2/+2 |
| | | |||||
* | | Merge pull request #19344 from davydovanton/doc-fix-spell-actionmailer | Arun Agrawal | 2015-03-15 | 1 | -1/+1 |
|\ \ | |/ |/| | [skip ci] Fix typo in actionmailer documentation | ||||
| * | [skip ci] Fix typo in actionmailer documentation | Anton Davydov | 2015-03-15 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #19342 from yui-knk/fix/missed_link | Arthur Nogueira Neves | 2015-03-15 | 1 | -1/+1 |
|\ | | | | | [ci skip] Fix dead link | ||||
| * | [ci skip] Fix dead link | yui-knk | 2015-03-16 | 1 | -1/+1 |
|/ | | | | | | | getting_started.html#the-mvc-architecture is lost by this commit 2f06c94e38a116fdfa43d7b7117e6bf911a0bff5 (Mar 14 2012 !). So replace it with wikipedia link. | ||||
* | Fix leaky chain on polymorphic association | eileencodes | 2015-03-15 | 6 | -1/+21 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If there was a polymorphic hm:t association with a scope AND second non-scoped hm:t association on a model the polymorphic scope would leak through into the call for the non-polymorhic hm:t association. This would only break if `hotel.drink_designers` was called before `hotel.recipes`. If `hotel.recipes` was called first there would be no problem with the SQL. Before (employable_type should not be here): ``` SELECT COUNT(*) FROM "drink_designers" INNER JOIN "chefs" ON "drink_designers"."id" = "chefs"."employable_id" INNER JOIN "departments" ON "chefs"."department_id" = "departments"."id" WHERE "departments"."hotel_id" = ? AND "chefs"."employable_type" = ? [["hotel_id", 1], ["employable_type", "DrinkDesigner"]] ``` After: ``` SELECT COUNT(*) FROM "recipes" INNER JOIN "chefs" ON "recipes"."chef_id" = "chefs"."id" INNER JOIN "departments" ON "chefs"."department_id" = "departments"."id" WHERE "departments"."hotel_id" = ? [["hotel_id", 1]] ``` From the SQL you can see that `employable_type` was leaking through when calling recipes. The solution is to dup the chain of the polymorphic association so it doesn't get cached. Additionally, this follows `scope_chain` which dup's the `source_reflection`'s `scope_chain`. This required another model/table/relationship because the leak only happens on a hm:t polymorphic that's called before another hm:t on the same model. I am specifically testing the SQL here instead of the number of records becasue the test could pass if there was 1 drink designer recipe for the drink designer chef even though the `employable_type` was leaking through. This needs to specifically check that `employable_type` is not in the SQL statement. | ||||
* | Merge pull request #19339 from y-yagi/mailer_preview_comment | Andrew White | 2015-03-15 | 2 | -7/+7 |
|\ | | | | | add mailer suffix to comments for email previews | ||||
| * | add mailer suffix to comments for email previews | yuuji.yaginuma | 2015-03-15 | 2 | -7/+7 |
| | | |||||
* | | Merge pull request #19340 from keepcosmos/association-doc-fix | Claudio B. | 2015-03-15 | 1 | -2/+2 |
|\ \ | |/ |/| | [ci skip]Doc fix about association hierarchy | ||||
| * | Doc fix about association hierarchy | keepcosmos | 2015-03-15 | 1 | -2/+2 |
|/ | |||||
* | Merge pull request #19336 from tchandy/cleaning_actionview_tests | Carlos Antonio da Silva | 2015-03-14 | 6 | -77/+1 |
|\ | | | | | Cleaning actionview tests | ||||
| * | Cleaning JavaScriptHelperTest | Thiago Pradi | 2015-03-14 | 1 | -8/+1 |
| | | |||||
| * | Cleaning unused views from actionpack tests inside actionview | Thiago Pradi | 2015-03-14 | 1 | -1/+0 |
| | | |||||
| * | Zlib isn't required for AssetTagHelperTest anymore | Thiago Pradi | 2015-03-14 | 1 | -1/+0 |
| | | |||||
| * | Cleaning unused methods from abstract_unit | Thiago Pradi | 2015-03-14 | 1 | -57/+0 |
| | | |||||
| * | Deleting unused fixtures | Thiago Pradi | 2015-03-14 | 2 | -10/+0 |
| | | |||||
* | | Merge pull request #19337 from mnaberez/fix-actionpack-changelog-typo | Arun Agrawal | 2015-03-14 | 1 | -1/+1 |
|\ \ | |/ |/| | Fix typo in Action Pack changelog | ||||
| * | Fix typo in Action Pack changelog. [ci skip] | Mike Naberezny | 2015-03-14 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #19335 from JahBrewski/master | Arthur Nogueira Neves | 2015-03-14 | 1 | -1/+1 |
|\ | | | | | [ci skip] Subject-verb agreement | ||||
| * | [ci skip] Subject-verb agreement | Joel Brewer | 2015-03-14 | 1 | -1/+1 |
|/ | |||||
* | Fix before_commit when updating a record on the callback | Arthur Neves | 2015-03-14 | 2 | -23/+44 |
| | |||||
* | Merge pull request #19322 from ↵ | Rafael Mendonça França | 2015-03-13 | 1 | -1/+1 |
|\ | | | | | | | | | AndrewHendrie/AndrewHendrie-guides-testing-partials-patch Asserting partials modification | ||||
| * | Asserting partials modification | Andrew Hendrie | 2015-03-13 | 1 | -1/+1 |
| | | | | | | Changed "create Articles view" to "new article view". The create action doesn't typically have a view assigned to it. The view that's being referred to is the 'new' Article view. | ||||
* | | Merge pull request #19323 from naoty/rake_initializer | Rafael Mendonça França | 2015-03-13 | 3 | -0/+14 |
|\ \ | | | | | | | Add `rake initializer` | ||||
| * | | Add `rake initializer` | Naoto Kaneko | 2015-03-14 | 3 | -0/+14 |
| | | | | | | | | | | | | | | | This task prints out initializers for an application. It is useful to develop a rubygem which involves the initialization process. | ||||
* | | | Added missing closing brace in sample code for safe HTML translations | Christian Ress | 2015-03-13 | 1 | -1/+1 |
| | | | | | | | | | | | | Closes #19321. [ci skip] | ||||
* | | | Merge pull request #19291 from hired/return-truthy-value-from-head | Rafael Mendonça França | 2015-03-13 | 2 | -0/+13 |
|\ \ \ | | | | | | | | | Return truthy value from head method | ||||
| * | | | Return true from head method | Joel Hayhurst | 2015-03-12 | 2 | -0/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | It was returning false in normal circumstances. This broke the `head :ok and return if` construct. Add appropriate test. | ||||
* | | | | Merge pull request #19311 from square/aj-adapter-lookup | Rafael Mendonça França | 2015-03-13 | 2 | -5/+9 |
|\ \ \ \ | | | | | | | | | | | `QueueAdapters` now does lazy lookup | ||||
| * | | | | `QueueAdapters` does the lookup | Tamir Duberstein | 2015-03-12 | 2 | -5/+9 |
| | | | | | |||||
* | | | | | Merge pull request #19315 from josh/update-sprockets-links | Rafael Mendonça França | 2015-03-13 | 6 | -10/+10 |
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | Update sprockets links to point to rails org | ||||
| * | | | | Update sprockets links to point to rails org | Joshua Peek | 2015-03-13 | 6 | -10/+10 |
|/ / / / | |||||
* | | | | Merge pull request #19317 from kuldeepaggarwal/doc-select-tag-output | Abdelkader Boudih | 2015-03-13 | 1 | -15/+15 |
|\ \ \ \ | | | | | | | | | | | [ci skip] correct output of select | ||||
| * | | | | [ci skip] correct output of select | Kuldeep Aggarwal | 2015-03-13 | 1 | -15/+15 |
|/ / / / | |||||
* | | | | Merge pull request #19313 from akshay-vishnoi/options-docs | Rafael Mendonça França | 2015-03-12 | 1 | -5/+5 |
|\ \ \ \ | | | | | | | | | | | [CI SKIP] Correct output of options_for_select | ||||
| * | | | | [CI SKIP] Correct output of options_for_select | Akshay Vishnoi | 2015-03-13 | 1 | -5/+5 |
|/ / / / | |||||
* | | | | Merge pull request #19312 from mariusbutuc/fix-mailer-testing-typo | Rafael Mendonça França | 2015-03-12 | 1 | -1/+1 |
|\ \ \ \ | |/ / / |/| | | | Fix typo in the Testing Your Mailers docs | ||||
| * | | | Fix typo in the “Testing Your Mailers” docs | Marius Butuc | 2015-03-12 | 1 | -1/+1 |
|/ / / | | | | | | | * [ci skip] | ||||
* | | | Merge pull request #19309 from f1sherman/dont-set-session-options-id | Guillermo Iguaran | 2015-03-12 | 5 | -13/+5 |
|\ \ \ | | | | | | | | | Use request.session.id instead of request.session_options[:id] | ||||
| * | | | Use request.session.id instead of request.session_options[:id] | Brian John | 2015-03-12 | 5 | -13/+5 |
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | As of the upgrade to Rack 1.5, request.session_options[:id] is no longer populated. Reflect this change in the tests by using request.session.id instead. Related change in Rack: https://github.com/rack/rack/commit/83a270d6 | ||||
* | | | Merge pull request #19310 from square/aj-const-get | Arthur Nogueira Neves | 2015-03-12 | 1 | -1/+1 |
|\ \ \ | | | | | | | | | Use a more conservative `const_get` over `constantize` | ||||
| * | | | Use a more conservative `const_get` over `constantize` | Tamir Duberstein | 2015-03-12 | 1 | -1/+1 |
| | | | | |||||
* | | | | Merge pull request #19271 from eagletmt/304-content-type | Arthur Nogueira Neves | 2015-03-12 | 2 | -0/+13 |
|\ \ \ \ | |/ / / |/| | | | 304 response should not include Content-Type header | ||||
| * | | | Also skip Content-Encoding and Vary header if 304 | Kohei Suzuki | 2015-03-12 | 2 | -4/+6 |
| | | | | |||||
| * | | | 304 response should not include Content-Type header | Kohei Suzuki | 2015-03-10 | 2 | -1/+12 |
| | | | | | | | | | | | | | | | | | | | | Rack::Lint raises an error saying "Content-Type header found in 304 response, not allowed". |