Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Enable `Layout/EmptyLinesAroundAccessModifier` cop | Ryuta Kamizono | 2019-06-13 | 1 | -1/+0 |
| | | | | | | | | | | | We sometimes say "✂️ newline after `private`" in a code review (e.g. https://github.com/rails/rails/pull/18546#discussion_r23188776, https://github.com/rails/rails/pull/34832#discussion_r244847195). Now `Layout/EmptyLinesAroundAccessModifier` cop have new enforced style `EnforcedStyle: only_before` (https://github.com/rubocop-hq/rubocop/pull/7059). That cop and enforced style will reduce the our code review cost. | ||||
* | Fixed a bug where the debug view does not show the error page properly | Yuki Nishijima | 2019-01-24 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | There are two cases where the debug view does not show the error details properly: * When the cause is mapped to an HTTP status code the last exception is unexpectedly uwrapped * When the last error is thrown from a view template the debug view is not using the `rescues/template_error.html.erb` to generate the view Both the cases could be fixed by not unwrapping the exception. The only case where the exception should be unwrapped is when the last error is an `ActionView::Template::Error` object. In this case the HTTP status code is determined based on the cause. There are actually more wrapper exceptions that are intentionally thrown. However, there is a consistent pattern of setting the original message and original backtrace to the wrapper exception implemented, so the debug view will not lose the information about what went wrong eariler. | ||||
* | [Action Pack] require => require_relative | Akira Matsuda | 2017-10-21 | 1 | -2/+2 |
| | | | | | This basically reverts e9fca7668b9eba82bcc832cb0061459703368397, d08da958b9ae17d4bbe4c9d7db497ece2450db5f, d1fe1dcf8ab1c0210a37c2a78c1ee52cf199a66d, and 68eaf7b4d5f2bb56d939f71c5ece2d61cf6680a3 | ||||
* | Use frozen string literal in actionpack/ | Kir Shatrov | 2017-07-29 | 1 | -0/+2 |
| | |||||
* | [Action Dispatch] require => require_relative | Akira Matsuda | 2017-07-01 | 1 | -2/+2 |
| | |||||
* | [docs] fix ActionDispatch documentation | Hrvoje Šimić | 2017-03-13 | 1 | -1/+1 |
| | |||||
* | Add three new rubocop rules | Rafael Mendonça França | 2016-08-16 | 1 | -1/+1 |
| | | | | | | | | Style/SpaceBeforeBlockBraces Style/SpaceInsideBlockBraces Style/SpaceInsideHashLiteralBraces Fix all violations in the repository. | ||||
* | normalizes indentation and whitespace across the project | Xavier Noria | 2016-08-06 | 1 | -16/+16 |
| | |||||
* | applies new string literal convention in actionpack/lib | Xavier Noria | 2016-08-06 | 1 | -5/+5 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | use methods on the request object instead of accessing env | Aaron Patterson | 2015-08-23 | 1 | -7/+7 |
| | |||||
* | ask the request if we should show exceptions | Aaron Patterson | 2015-08-06 | 1 | -3/+4 |
| | | | | | hide the env key in the request object so that other code doesn't need to know. | ||||
* | ExceptionWrapper doesn't need to know about `env` | Aaron Patterson | 2015-08-06 | 1 | -1/+2 |
| | | | | | | ExceptionWrapper only cares about the backtrace cleaner, so lets just pass the cleaner to the wrapper. It does not need to know that env exists or what key the backtrace cleaner is stored in | ||||
* | Stash original path in `ShowExceptions` middleware | Grey Baker | 2014-07-14 | 1 | -0/+1 |
| | | | | | | | | | | `ActionDispatch::ShowExceptions` overwrites `PATH_INFO` with the status code for the exception defined in `ExceptionWrapper`, so the path the user was visiting when an exception occurred was not previously available to any custom exceptions_app. The original `PATH_INFO` is now stashed in `env["action_dispatch.original_path"]`. | ||||
* | Remove surprise if from show_exception middleware | Prem Sichanugrist | 2013-10-27 | 1 | -2/+5 |
| | | | This increase the readability within the rescue block. | ||||
* | refactor ShowExceptions' #call to use def-rescue instead of begin-rescue | Gosha Arinich | 2013-01-07 | 1 | -7/+4 |
| | |||||
* | Reduce number of Strings a bit | Akira Matsuda | 2013-01-07 | 1 | -3/+3 |
| | |||||
* | Add ensure block to make sure the state is properly restored | Carlos Antonio da Silva | 2012-11-04 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-10-11 | 1 | -1/+1 |
|\ | | | | | | | | | | | Conflicts: activerecord/lib/active_record/persistence.rb railties/lib/rails/generators/rails/resource_route/resource_route_generator.rb | ||||
| * | Space between "every" and "time" | schneems | 2012-10-02 | 1 | -1/+1 |
| | | |||||
* | | Failsafe exception returns text/plain. | Steve Klabnik | 2012-10-01 | 1 | -3/+3 |
|/ | | | | | | | It's best to just return text/plain when something has gone terribly wrong. Fixes #5660. | ||||
* | Whitespaces :scissors: | Rafael Mendonça França | 2012-03-17 | 1 | -1/+1 |
| | |||||
* | remove status_code from AD::ShowExceptions and useless requires | Sergey Nartimov | 2011-12-21 | 1 | -6/+0 |
| | |||||
* | Remove deprecation warnings from Action Pack. | José Valim | 2011-12-20 | 1 | -25/+1 |
| | |||||
* | ShowExceptions should understand X-Cascade responses from exceptions app. | José Valim | 2011-12-16 | 1 | -4/+15 |
| | |||||
* | Improve the specs on exceptions app. | José Valim | 2011-12-16 | 1 | -1/+6 |
| | |||||
* | Extract the rendering of public exceptions pages into a Rack app. | José Valim | 2011-12-16 | 1 | -33/+18 |
| | |||||
* | Fix failing cascade exception. | José Valim | 2011-12-03 | 1 | -1/+1 |
| | |||||
* | Try to play nice with plugins doing monkey patches. | José Valim | 2011-12-02 | 1 | -0/+5 |
| | |||||
* | Split and improve show and debug exceptions middlewares. | José Valim | 2011-12-01 | 1 | -11/+11 |
| | |||||
* | Split ShowExceptions responsibilities in two middlewares. | José Valim | 2011-12-01 | 1 | -82/+28 |
| | |||||
* | Add a deprecation to old show exceptions API (even though it was not public). | José Valim | 2011-12-01 | 1 | -0/+14 |
| | |||||
* | Add an ExceptionWrapper that wraps an exception and provide convenience helpers. | José Valim | 2011-12-01 | 1 | -74/+23 |
| | |||||
* | Allow rescue responses to be configured through a railtie. | José Valim | 2011-12-01 | 1 | -8/+4 |
| | |||||
* | put backtrace_cleaner to env | lest | 2011-11-28 | 1 | -13/+13 |
| | |||||
* | middlewares should use logger from env | lest | 2011-11-25 | 1 | -6/+10 |
| | |||||
* | deprecation warning, changelog entry | lest | 2011-11-22 | 1 | -1/+3 |
| | |||||
* | add ActionController::Metal#show_detailed_exceptions? | lest | 2011-11-22 | 1 | -9/+7 |
| | |||||
* | Deprecate passing the template handler in the template name. | José Valim | 2011-09-22 | 1 | -2/+2 |
| | | | | | | For example, calling hello.erb is now deprecated. Since Rails 3.0 passing the handler had no effect whatsover. This commit simply deprecates such cases so we can clean up the code in later releases. | ||||
* | TODO fix explicitly loading exceptations, autoload removed | Vishnu Atrai | 2011-07-11 | 1 | -0/+1 |
| | |||||
* | Sets the HTTP charset parameter for rescue response. | Matias Korhonen | 2011-05-03 | 1 | -1/+1 |
| | |||||
* | show http method in routing error message | Schneems | 2011-04-23 | 1 | -1/+1 |
| | |||||
* | use raise to create exceptions and to set the backtrace | Aaron Patterson | 2011-01-12 | 1 | -1/+1 |
| | |||||
* | reraising should be in the rescue block | Aaron Patterson | 2011-01-12 | 1 | -1/+1 |
| | |||||
* | Refactor to handle the X-Cascade without having to raise an exception | Krekoten' Marjan | 2011-01-09 | 1 | -12/+12 |
| | |||||
* | Show exceptions rescues the original exception | Les Hill and Sandro Turriate | 2010-10-12 | 1 | -0/+13 |
| | | | | | | [#5784 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Revert "Setup explicit requires for files with exceptions. Removed them from ↵ | José Valim | 2010-09-02 | 1 | -1/+0 |
| | | | | | | | | autoloading." Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b34d0b414564e919f67d339fac067a56e6. | ||||
* | Setup explicit requires for files with exceptions. Removed them from ↵ | Łukasz Strzałkowski | 2010-09-02 | 1 | -0/+1 |
| | | | | | | autoloading. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | annoted_source_code may return nil if an error happens during template ↵ | José Valim | 2010-08-16 | 1 | -1/+1 |
| | | | | compiling. | ||||
* | Moves local_request? to require.local? | Santiago Pastorino | 2010-08-13 | 1 | -8/+1 |
| | | | | [#5361 state:committed] | ||||
* | Use Rack::Utils.bytesize when calculating content-length of exception pages. ↵ | Tarsoly András | 2010-06-20 | 1 | -1/+1 |
| | | | | | | [#4727 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> |