1. 10 11月, 2014 1 次提交
  2. 06 10月, 2014 1 次提交
  3. 17 7月, 2014 1 次提交
  4. 05 7月, 2014 1 次提交
    • S
      Add a `required` option to singular associations · 00f55516
      Sean Griffin 提交于
      In addition to defining the association, a `required` association will
      also have its presence validated.
      
      Before:
      
      ```ruby
      belongs_to :account
      validates_presence_of :account
      ```
      
      After:
      
      ```ruby
      belongs_to :account, required: true
      ```
      
      This helps to draw a distinction between types of validations, since
      validations on associations are generally for data integrity purposes,
      and aren't usually set through form inputs.
      00f55516
  5. 20 6月, 2014 1 次提交
  6. 09 6月, 2014 1 次提交
  7. 25 5月, 2014 1 次提交
  8. 21 5月, 2014 1 次提交
  9. 20 5月, 2014 1 次提交
  10. 17 5月, 2014 2 次提交
  11. 15 5月, 2014 1 次提交
  12. 13 5月, 2014 1 次提交
  13. 26 4月, 2014 1 次提交
    • K
      Fix custom join_table name on habtm reflections · 18fa87b8
      Kassio Borges 提交于
      When used a custom join_table name on a habtm, rails was not saving it
      on Reflections. This causes a problem when rails loads fixtures, because
      it uses the reflections to set database with fixtures.
      18fa87b8
  14. 16 4月, 2014 1 次提交
  15. 15 4月, 2014 2 次提交
  16. 14 4月, 2014 1 次提交
  17. 31 1月, 2014 1 次提交
  18. 23 12月, 2013 1 次提交
  19. 13 12月, 2013 1 次提交
  20. 12 12月, 2013 2 次提交
  21. 11 12月, 2013 1 次提交
  22. 05 12月, 2013 1 次提交
    • S
      polymorphic belongs_to association with touch: true updates old record correctly · f1a646fa
      Severin Schoepke 提交于
      Example: Given you have a comments model with a polymorphic commentable
      association (e.g. books and songs) with the touch option set.
      Every time you update a comment its commentable should be touched.
      This was working when you changed attributes on the comment or when you
      moved the comment from one book to another. However, it was not working
      when moving a comment from a book to a song. This is now fixed.
      f1a646fa
  23. 30 11月, 2013 1 次提交
    • G
      Raise `ArgumentError` when `has_one` is used with `counter_cache` · 35fd2d40
      Godfrey Chan 提交于
      Previously, the `has_one` macro incorrectly accepts the `counter_cache` option
      due to a bug, although that options was never supported nor functional on
      `has_one` and `has_one ... through` relationships. It now correctly raises an
      `ArgumentError` when passed that option.
      
      For reference, this bug was introduced in 52f8e4b9.
      35fd2d40
  24. 26 10月, 2013 1 次提交
  25. 10 10月, 2013 8 次提交
  26. 09 10月, 2013 5 次提交