1. 06 9月, 2012 1 次提交
  2. 05 9月, 2012 2 次提交
  3. 03 9月, 2012 1 次提交
    • Y
      set the configured #inheritance_column on #become (#7503) · 20574956
      Yves Senn 提交于
      I had to create a new table because I needed an STI table,
      which does not have both a "type" and a "custom_type"
      
      the test fails with:
        1) Error:
      test_alt_becomes_works_with_sti(InheritanceTest):
      NoMethodError: undefined method `type=' for #<Cabbage id: 1, name: "my cucumber", custom_type: "Cucumber">
          /Users/username/Projects/rails/activemodel/lib/active_model/attribute_methods.rb:432:in `method_missing'
          /Users/username/Projects/rails/activerecord/lib/active_record/attribute_methods.rb:100:in `method_missing'
          /Users/username/Projects/rails/activerecord/lib/active_record/persistence.rb:165:in `becomes'
          test/cases/inheritance_test.rb:134:in `test_becomes_works_with_sti'
          test/cases/inheritance_test.rb:140:in `test_alt_becomes_works_with_sti'
      20574956
  4. 01 9月, 2012 1 次提交
  5. 31 8月, 2012 5 次提交
  6. 30 8月, 2012 4 次提交
  7. 26 8月, 2012 4 次提交
  8. 25 8月, 2012 3 次提交
  9. 24 8月, 2012 2 次提交
  10. 23 8月, 2012 1 次提交
    • D
      Update the documentation for the :autosave option · 230d7f76
      David Celis 提交于
      I've noticed a caveat with the :autosave option biting people before.
      Questions arise about why they must explicitly save an associated object
      in their own before_save callbacks. I've updated the documentation as
      such to note to users that the :autosave callback occurs before any
      user defined callbacks. They must save the associated record themselves
      if altering it in their own callbacks.
      Signed-off-by: NDavid Celis <david@davidcelis.com>
      230d7f76
  11. 22 8月, 2012 3 次提交
  12. 21 8月, 2012 8 次提交
  13. 20 8月, 2012 1 次提交
    • C
      Remove private verify readonly attr method · 7a8aee08
      Carlos Antonio da Silva 提交于
      This method was added to be shared between update_attribute and
      update_column in 50725cec, but since
      update_attribute was removed, and update_column has changed to delegate
      to update_columns, the method is not used anywhere anymore.
      
      Also remove "key.to_s" conversion when raising readonly error, since
      the key is being interpolated.
      7a8aee08
  14. 19 8月, 2012 1 次提交
  15. 18 8月, 2012 3 次提交