1. 31 5月, 2016 2 次提交
  2. 30 5月, 2016 1 次提交
    • R
      Tiny document fixes [ci skip] · 1afdbbeb
      Robin Dupret 提交于
      Add a missing capital letter and avoid using absolute links to the
      API because they may refer to out-dated documentation on the Edge
      site.
      1afdbbeb
  3. 29 5月, 2016 1 次提交
  4. 28 5月, 2016 1 次提交
  5. 27 5月, 2016 1 次提交
  6. 25 5月, 2016 1 次提交
  7. 24 5月, 2016 1 次提交
  8. 21 5月, 2016 2 次提交
  9. 20 5月, 2016 1 次提交
  10. 19 5月, 2016 2 次提交
  11. 16 5月, 2016 1 次提交
    • J
      Action Mailer: Declarative exception handling with `rescue_from`. · e35b98e6
      Jeremy Daer 提交于
      Follows the same pattern as controllers and jobs. Exceptions raised in
      delivery jobs (enqueued by `#deliver_later`) are also delegated to the
      mailer's rescue_from handlers, so you can handle the DeserializationError
      raised by delivery jobs:
      
      ```ruby
      class MyMailer < ApplicationMailer
        rescue_from ActiveJob::DeserializationError do
          …
        end
      ```
      
      ActiveSupport::Rescuable polish:
      * Add the `rescue_with_handler` class method so exceptions may be
        handled at the class level without requiring an instance.
      * Rationalize `exception.cause` handling. If no handler matches the
        exception, fall back to the handler that matches its cause.
      * Handle exceptions raised elsewhere. Pass `object: …` to execute
        the `rescue_from` handler (e.g. a method call or a block to
        instance_exec) against a different object. Defaults to `self`.
      e35b98e6
  12. 13 5月, 2016 1 次提交
  13. 12 5月, 2016 1 次提交
  14. 11 5月, 2016 1 次提交
  15. 10 5月, 2016 3 次提交
  16. 08 5月, 2016 1 次提交
  17. 07 5月, 2016 4 次提交
  18. 06 5月, 2016 3 次提交
    • P
      Release notes: Add PR #24866 to release notes · bf79bc03
      Prathamesh Sonpatki 提交于
      bf79bc03
    • R
      Implement helpers proxy in controller instance level · 541a51ec
      Rafael Mendonça França 提交于
      It is a common pattern in the Rails community that when people want to
      :xa
      use any kind of helper that is defined inside app/helpers they includes
      the helper module inside the controller like:
      
          module UserHelper
            def my_user_helper
              # ...
            end
          end
      
          class UsersController < ApplicationController
            include UserHelper
      
            def index
              render inline: my_user_helper
            end
          end
      
      This has problem because the helper can't access anything that is
      defined in the view level context class.
      
      Also all public methods of the helper become available in the controller
      what can lead to undesirable methods being routed and behaving as
      actions.
      
      Also if you helper depends on other helpers or even Action View helpers
      you need to include each one of these dependencies in your controller
      otherwise your helper is not going to work.
      
      We already have a helpers proxy at controller class level but that proxy
      doesn't have access to the instance variables defined in the
      controller.
      
      With this new instance level helper proxy users can reuse helpers in the
      controller without having to include the modules and with access to
      instance variables defined in the controller.
      
          class UsersController < ApplicationController
            def index
              render inline: helpers.my_user_helper
            end
          end
      541a51ec
    • R
      Move protected instance variable to the right place · cece50d3
      Rafael Mendonça França 提交于
      There were a lot of protected instance variables in
      AbsctractController::Rendering that were related to Action Controller
      and Action View.
      
      Moving to ActionController::Base's protected instance list we make it
      closer to where they are really defined.
      cece50d3
  19. 05 5月, 2016 2 次提交
  20. 04 5月, 2016 1 次提交
  21. 01 5月, 2016 1 次提交
  22. 29 4月, 2016 1 次提交
  23. 28 4月, 2016 1 次提交
  24. 27 4月, 2016 1 次提交
  25. 24 4月, 2016 1 次提交
  26. 23 4月, 2016 1 次提交
  27. 22 4月, 2016 1 次提交
  28. 21 4月, 2016 1 次提交
  29. 20 4月, 2016 1 次提交