1. 05 11月, 2019 1 次提交
  2. 01 11月, 2019 1 次提交
  3. 17 8月, 2019 1 次提交
  4. 14 8月, 2019 1 次提交
  5. 23 7月, 2019 1 次提交
  6. 13 7月, 2019 2 次提交
  7. 06 6月, 2019 1 次提交
  8. 28 4月, 2019 2 次提交
  9. 25 4月, 2019 1 次提交
  10. 23 4月, 2019 1 次提交
  11. 19 4月, 2019 2 次提交
  12. 15 4月, 2019 1 次提交
  13. 14 4月, 2019 1 次提交
  14. 09 4月, 2019 1 次提交
  15. 02 4月, 2019 3 次提交
  16. 31 3月, 2019 1 次提交
  17. 27 3月, 2019 1 次提交
  18. 25 3月, 2019 1 次提交
  19. 23 3月, 2019 2 次提交
    • P
      Add config.disable_sandbox option to Rails console · b2710525
      Prem Sichanugrist 提交于
      A long-running `rails console --sandbox` could cause a database server
      to become out-of-memory as it's holding on to changes that happen on the
      database.
      
      Given that it's common for Ruby on Rails application with huge
      traffic to have separate write database and read database, we should
      allow the developers to disable this sandbox option to prevent someone
      from accidentally causing the Denial-of-Service on their server.
      b2710525
    • J
      Update CHANGELOGs for 6.0.0.beta3 release · 5c2d6959
      John Hawthorn 提交于
      5c2d6959
  20. 19 3月, 2019 1 次提交
  21. 16 3月, 2019 1 次提交
  22. 11 3月, 2019 2 次提交
  23. 26 2月, 2019 1 次提交
  24. 14 2月, 2019 1 次提交
    • E
      Fix the `config_for` to always return a NonSymbolAccessDeprecatedHash: · 4f7231da
      Edouard CHIN 提交于
      - If you have hashes inside array, the hashes were getting initialized
        as regular HWIA wereas we want them to be
        NonSymbolAccessDeprecatedHash in order to trigger a deprecation
        warning when keys are accessed with string.
      
        This patch fixes that by overwriting the `[]=` to to the same
        as what HWIA does (with the difference that we don't call
        `convert_key` to not trigger a deprecation when setting value).
      
        I also took the liberty to extract `hash.nested_under_indifferent_access`,
        into a separate method to allow subclasses to return whatever
        they want.
        Inheriting HWIA is not common, but I think it's useful for cases
        like this one where we want to preprocess reading and writing values
        in the hash (for deprecation purposes or other reasons).
      4f7231da
  25. 12 2月, 2019 1 次提交
    • U
      Allow deprecated non-symbol access to nested `config_for` hashes · 325e917f
      Ufuk Kayserilioglu 提交于
      A change to `Rails::Application.config_for` in
      https://github.com/rails/rails/pull/33815 and
      https://github.com/rails/rails/pull/33882 has altered the behaviour of
      the returned object in a breaking manner. Before that change, nested
      hashes returned from `config_for` could be accessed using non-symbol keys.
      After the change, all keys are recursively symbolized so non-symbol access
      fails to read the expected values.
      
      This is a breaking change for any app that might be relying on the
      nested hashes returned from `config_for` calls, and thus should be
      deprecated before being removed from the codebase.
      
      This commit introduces a temporary `NonSymbolAccessDeprecatedHash` class
      that recursively wraps any nested hashes inside the `OrderedOptions`
      object returned from `config_for` and issues a deprecation notice when a
      non-symbol based access is performed.
      
      This way, apps that are still relying on the ability to access these
      nested hashes using non-symbol keys will be able to observe the
      deprecation notices and have time to implement changes before non-symbol
      access is removed for good.
      
      A CHANGELOG entry is also added to note that non-symbol access to nested
      `config_for` hashes is deprecated.
      325e917f
  26. 03 2月, 2019 1 次提交
    • G
      Cleanup the whitelisting references after #33145 · ca62dfee
      Genadi Samokovarov 提交于
      During the development of #33145, I have named a few concepts in the
      code as `whitelisted`. We decided to stay away from the term and I
      adjusted most of the code afterwards, but here are the cases I forgot to
      change.
      
      I also found a case in the API guide that we could have cleaned up as
      well.
      
      [ci skip]
      ca62dfee
  27. 25 1月, 2019 1 次提交
  28. 19 1月, 2019 1 次提交
  29. 18 1月, 2019 5 次提交