- 25 11月, 2014 2 次提交
-
-
由 Genadi Samokovarov 提交于
-
由 Genadi Samokovarov 提交于
This will help you debug missing template errors, especially if they come from a programmatic template selection. Thanks to @dhh for suggesting that. As a bonus, also show request and response info on the routing error page for consistency.
-
- 23 11月, 2014 5 次提交
-
-
由 Godfrey Chan 提交于
If the route set is empty, or if none of the routes matches with a score > 0, there is no point showing the deprecation message because we are already be raising the `ActionController::UrlGenerationError` mentioned in the warning. In this case it is the expected behavior and the user wouldn't have to take any actions.
-
由 Godfrey Chan 提交于
The internal tests that (incorrectly) relied on this were already fixed in 938d130c. However, we cannot simply fix this bug because the guides prior to b7b9e920 recommended a workaround that relies on this buggy behavior. Reference #17453
-
由 Guo Xiang Tan 提交于
Fixes https://github.com/rails/rails/issues/17714.
-
由 Godfrey Chan 提交于
They were introduced in 23b6def0; the serial stuff has been removed since a5d80f84
-
- 21 11月, 2014 1 次提交
-
-
由 claudiob 提交于
[ci skip]
-
- 19 11月, 2014 1 次提交
-
-
由 Rafael Mendonça França 提交于
This reverts commit f93df528, reversing changes made to a455e3f4. Conflicts: actionpack/lib/action_controller/test_case.rb actionview/lib/action_view/test_case.rb
-
- 17 11月, 2014 4 次提交
-
-
由 Calvin Correli 提交于
When calling assigns(:...) or cookies(:...), template assertions would be reset, which they obviously shouldn't be.
-
由 Genadi Samokovarov 提交于
If a trace isn't an application one, then it comes from a framework. That's the definition of framework trace. We can speed up the traces generation if we don't double check that.
-
由 Genadi Samokovarov 提交于
Since dbcbbcf2 the full trace is shown by default on routing errors. While this is a nice feature to have, it does take the attention off the routes table in this view and I think this is what most of the people look for in this page. Added an exception to the default trace switching rule to remove that noise.
-
由 Genadi Samokovarov 提交于
It returns multiple source extracts since 1ed264bc. Also cleaned its result structure, as we no longer need the file in a code extract.
-
- 16 11月, 2014 1 次提交
-
-
由 Genadi Samokovarov 提交于
Those three can be nil when exception backtrace is nil. This happens and that forced a couple of nil guards in the code. I'm proposing to make those always return an array, even on nil backtrace.
-
- 11 11月, 2014 1 次提交
-
-
由 Rafael Mendonça França 提交于
Closes #17586
-
- 05 11月, 2014 1 次提交
-
-
由 Guo Xiang Tan 提交于
Fixes: https://github.com/rails/rails/issues/16814
-
- 04 11月, 2014 1 次提交
-
-
由 Genadi Samokovarov 提交于
ActionDispatch::ExceptionWrapper seems to be the more natural place for this method to live in.
-
- 03 11月, 2014 1 次提交
-
-
由 Benjamin Fleischer 提交于
- `secrets.secret_token` is now used in all places `config.secret_token` was - `secrets.secret_token`, when not present in `config/secrets.yml`, now falls back to the value of `config.secret_token` - when `secrets.secret_token` is set, it over-writes `config.secret_token` so they are the same (for backwards-compatibility) - Update docs to reference app.secrets in all places - Remove references to `config.secret_token`, `config.secret_key_base` - Warn that missing secret_key_base is deprecated - Add tests for secret_token, key_generator, and message_verifier - the legacy key generator is used with the message verifier when secrets.secret_key_base is blank and secret_token is set - app.key_generator raises when neither secrets.secret_key_base nor secret_token are set - app.env_config raises when neither secrets.secret_key_base nor secret_token are set - Add changelog Run focused tests via ruby -w -Itest test/application/configuration_test.rb -n '/secret_|key_/'
-
- 30 10月, 2014 1 次提交
-
-
由 claudiob 提交于
-
- 29 10月, 2014 4 次提交
-
-
由 Xavier Noria 提交于
This patch uniformizes warning messages. I used the most common style already present in the code base: * Capitalize the first word. * End the message with a full stop. * "Rails 5" instead of "Rails 5.0". * Backticks for method names and inline code. Also, converted a few long strings into the new heredoc convention.
-
由 Xavier Noria 提交于
The current style for warning messages without newlines uses concatenation of string literals with manual trailing spaces where needed. Heredocs have better readability, and with `squish` we can still produce a single line. This is a similar use case to the one that motivated defining `strip_heredoc`, heredocs are super clean.
-
由 Godfrey Chan 提交于
-
由 Godfrey Chan 提交于
In cases where this option is set to `true`, the option is redundant and can be safely removed; otherwise, the corresponding `*_url` helper should be used instead. Fixes #17294. See also #17363. [Dan Olson, Godfrey Chan]
-
- 24 10月, 2014 1 次提交
-
-
由 Byron Bischoff 提交于
-
- 21 10月, 2014 1 次提交
-
-
由 Accessd 提交于
-
- 20 10月, 2014 2 次提交
-
-
由 Abdelkader Boudih 提交于
-
由 Prathamesh Sonpatki 提交于
- Also one minor change for documenting url_for method in ActionController::Metal. [ci skip]
-
- 16 10月, 2014 1 次提交
-
-
由 Yuutetu 提交于
-
- 15 10月, 2014 1 次提交
-
-
由 Nicolas Cavigneaux 提交于
`#tr` is more efficient than `#gsub` and can be used as a drop in replacement in this context.
-
- 14 10月, 2014 2 次提交
-
-
由 Max Melentiev 提交于
Fixes #15967
-
由 Nicolas Cavigneaux 提交于
The scanner in Journey fails to recognize routes that use literals from the sub-delims section of RFC 3986. This commit enhance the compatibility of Journey with the RFC by adding support of authorized delimiters to the scanner. Fix #17212
-
- 13 10月, 2014 1 次提交
-
-
由 Erik Michaels-Ober 提交于
-
- 11 10月, 2014 1 次提交
-
-
由 Aaron Patterson 提交于
FileHandler#matches? should return false for files that are outside the "root" path.
-
- 09 10月, 2014 1 次提交
-
-
由 Stefan Henzen 提交于
Request#check_method would use to_sentence(locale: :en), which breaks when I18n.available_locales does not include :en and I18n.enforce_available_locales is true (default). Inlined to_sentence functionality to solve this.
-
- 30 9月, 2014 1 次提交
-
-
由 Kasper Timm Hansen 提交于
This is to match the changes in Rails Dom Testing rails/rails-dom-testing#20.
-
- 29 9月, 2014 1 次提交
-
-
由 Erik Michaels-Ober 提交于
Hash#keys.each allocates an array of keys; Hash#each_key iterates through the keys without allocating a new array. This is the reason why Hash#each_key exists.
-
- 26 9月, 2014 3 次提交
-
-
由 Rafael Mendonça França 提交于
This reverts commit 9d05d6de, reversing changes made to 0863c924. The change in the behaviour reported at #16958 doesn't exist since 4.0 and 4.1 works in the same way
-
由 Mohamed Wael Khobalatte 提交于
-
由 Rafael Mendonça França 提交于
-
- 25 9月, 2014 1 次提交
-
-
由 Gert Goet 提交于
Fixes #17057
-