1. 23 8月, 2020 1 次提交
  2. 08 7月, 2020 1 次提交
  3. 20 6月, 2020 1 次提交
  4. 01 6月, 2020 1 次提交
  5. 20 5月, 2020 1 次提交
  6. 07 1月, 2020 1 次提交
  7. 13 12月, 2019 1 次提交
    • K
      Clarify documentation by removing charged words · b0743dda
      Kevin Jacoby 提交于
      Using words such as 'just', 'simply' and 'easy' implies to the reader
      that the tasks they are trying to accomplish are tasks that anyone can
      do, which might then frustrate them if they find it difficult to
      complete.
      
      This commit rephrases some usage of these words to aid understanding in
      the readers without making them feel belittled.
      
      [ci skip]
      b0743dda
  8. 23 4月, 2019 1 次提交
    • A
      Remove reminiscences from previous documentation [ci skip] · 0c349abe
      Alberto Almagro 提交于
      In #35861 documentation for `after_save_commit` was added, but also old
      documentation was adapted. I think adapting the old documentation is not
      necessary because there are already examples for `after_commit` on
      `:destroy` above. On top of that the action invoked by the callback on
      `:destroy` (`:log_user_saved_to_db`) talks about saving when the object
      is destroyed, which can be misleading.
      
      As I believe the documentation added by #35861 is already enough this
      patch removes the modified part, which made sense before adding docs for
      `after_save_commit` but is already covered by other parts of this guide.
      0c349abe
  9. 05 4月, 2019 1 次提交
  10. 23 2月, 2019 1 次提交
  11. 19 2月, 2019 4 次提交
  12. 14 9月, 2018 1 次提交
  13. 20 8月, 2018 1 次提交
  14. 24 7月, 2018 1 次提交
  15. 15 7月, 2018 1 次提交
  16. 11 5月, 2018 1 次提交
    • A
      Added a lot of Oxford commas · 25867024
      Anthony Crumley 提交于
      [ci skip] A regular expression was used to find a lot of missing Oxford
      commas and add them.  The regular expression was as follows.
      
      ", ([a-zA-Z0-9.\`:'\"]+ ){1,6}(or|and) "
      25867024
  17. 18 2月, 2018 1 次提交
  18. 13 11月, 2017 1 次提交
  19. 16 8月, 2017 1 次提交
  20. 25 7月, 2017 1 次提交
  21. 10 4月, 2017 2 次提交
  22. 05 4月, 2017 1 次提交
  23. 18 2月, 2017 1 次提交
  24. 25 12月, 2016 1 次提交
  25. 04 9月, 2016 1 次提交
  26. 15 8月, 2016 1 次提交
    • E
      Update increment! documentation [ci skip] · 115e3144
      Eugene Kenny 提交于
      The `increment!` and `decrement!` methods were recently reimplemented to
      make them safe to call from multiple connections concurrently. This
      changed their behaviour in a few ways.
      
      Previously they used `update_attribute`, which calls the attribute
      setter method, runs callbacks, and touches the record. Now they behave
      more like `update_column`, writing the update to the database directly
      and bypassing all of those steps.
      115e3144
  27. 14 6月, 2016 1 次提交
  28. 19 1月, 2016 1 次提交
  29. 16 12月, 2015 1 次提交
    • G
      Introduce ApplicationRecord, an Active Record layer supertype · 2067fff9
      Genadi Samokovarov 提交于
      It's pretty common for folks to monkey patch `ActiveRecord::Base` to
      work around an issue or introduce extra functionality. Instead of
      shoving even more stuff in `ActiveRecord::Base`, `ApplicationRecord` can
      hold all those custom work the apps may need.
      
      Now, we don't wanna encourage all of the application models to inherit
      from `ActiveRecord::Base`, but we can encourage all the models that do,
      to inherit from `ApplicationRecord`.
      
      Newly generated applications have `app/models/application_record.rb`
      present by default. The model generators are smart enough to recognize
      that newly generated models have to inherit from `ApplicationRecord`,
      but only if it's present.
      2067fff9
  30. 07 12月, 2015 1 次提交
    • G
      Introduce after_{create,update,delete}_commit callbacks · 5a300b2e
      Genadi Samokovarov 提交于
      Those are actually shortcuts for `after_commit`.
      
      Before:
      
          after_commit :add_to_index_later, on: :create
          after_commit :update_in_index_later, on: :update
          after_commit :remove_from_index_later, on: :destroy
      
      After:
      
          after_create_commit  :add_to_index_later
          after_update_commit  :update_in_index_later
          after_destroy_commit :remove_from_index_later
      5a300b2e
  31. 11 3月, 2015 1 次提交
  32. 14 1月, 2015 1 次提交
  33. 24 12月, 2014 1 次提交
  34. 09 7月, 2014 1 次提交
  35. 22 5月, 2014 1 次提交
  36. 11 4月, 2014 1 次提交