1. 04 9月, 2012 8 次提交
  2. 03 9月, 2012 2 次提交
    • R
      Merge pull request #7506 from senny/issue_7503 · 30a8f0d5
      Rafael Mendonça França 提交于
      #becomes works with configured inheritance_column
      30a8f0d5
    • 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
  3. 02 9月, 2012 13 次提交
  4. 01 9月, 2012 11 次提交
  5. 31 8月, 2012 6 次提交