1. 22 2月, 2016 2 次提交
  2. 05 1月, 2016 1 次提交
  3. 07 12月, 2015 1 次提交
    • E
      Change the `protect_from_forgery` prepend default to `false` · 39794037
      eileencodes 提交于
      Per this comment
      https://github.com/rails/rails/pull/18334#issuecomment-69234050 we want
      `protect_from_forgery` to default to `prepend: false`.
      
      `protect_from_forgery` will now be insterted into the callback chain at the
      point it is called in your application. This is useful for cases where you
      want to `protect_from_forgery` after you perform required authentication
      callbacks or other callbacks that are required to run after forgery protection.
      
      If you want `protect_from_forgery` callbacks to always run first, regardless of
      position they are called in your application, then you can add `prepend: true`
      to your `protect_from_forgery` call.
      
      Example:
      
      ```ruby
      protect_from_forgery prepend: true
      ```
      39794037
  4. 26 11月, 2015 1 次提交
  5. 05 9月, 2015 1 次提交
  6. 25 8月, 2015 1 次提交
  7. 24 8月, 2015 1 次提交
  8. 18 7月, 2015 1 次提交
    • P
      Stop using deprecated `render :text` in test · 8cb8ce98
      Prem Sichanugrist 提交于
      This will silence deprecation warnings.
      
      Most of the test can be changed from `render :text` to render `:plain`
      or `render :body` right away. However, there are some tests that needed
      to be fixed by hand as they actually assert the default Content-Type
      returned from `render :body`.
      8cb8ce98
  9. 09 7月, 2015 1 次提交
  10. 28 5月, 2015 1 次提交
  11. 26 4月, 2015 1 次提交
  12. 13 2月, 2015 1 次提交
  13. 01 2月, 2015 1 次提交
  14. 29 1月, 2015 1 次提交
  15. 09 1月, 2015 1 次提交
  16. 20 8月, 2014 1 次提交
  17. 17 6月, 2014 2 次提交
  18. 16 6月, 2014 1 次提交
  19. 28 5月, 2014 1 次提交
  20. 06 5月, 2014 1 次提交
  21. 18 4月, 2014 2 次提交
  22. 05 3月, 2014 1 次提交
  23. 18 12月, 2013 2 次提交
  24. 19 9月, 2013 1 次提交
  25. 09 2月, 2013 1 次提交
  26. 23 1月, 2013 1 次提交
  27. 06 1月, 2013 1 次提交
  28. 13 9月, 2012 1 次提交
  29. 31 5月, 2012 1 次提交
  30. 29 3月, 2012 3 次提交
  31. 16 3月, 2012 1 次提交
  32. 15 3月, 2012 2 次提交
  33. 10 3月, 2012 1 次提交
    • S
      configure how unverified request will be handled · 24594110
      Sergey Nartimov 提交于
      can be configured using `:with` option in `protect_from_forgery` method
      or `request_forgery_protection_method` config option
      
      possible values:
      - :reset_session (default)
      - :exception
      
      new applications are generated with:
      
          protect_from_forgery :with => :exception
      24594110