Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #6766 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

STI not setting inheritance column (after changeset #5660)

Reported by: lourens Assigned to: bitsweat
Priority: normal Milestone: 1.2 regressions
Component: ActiveRecord Version: edge
Severity: normal Keywords: sti
Cc: zenspider

Description

ActiveRecord STI subclasses does not set the inheritance column (intialize, save).

PaidSubscription.new

=> #<PaidSubscription:0x4843074 @attributes={"updated_at"=>nil, "account_id"=>0, "type"=>"", "created_at"=>nil, "plan_id"=>0}, @new_record=true>

Attachments

monkey_patch.rb (286 bytes) - added by lourens on 12/05/06 22:48:35.
Temporary monkey patch to solve this problem

Change History

12/05/06 20:52:39 changed by lourens

  • summary changed from STI not setting inheritance column (after changeset #5704) to STI not setting inheritance column (after changeset #5660).

12/05/06 21:38:05 changed by bitsweat

  • cc set to zenspider.
  • keywords set to sti 1.2regression.
  • owner changed from core to bitsweat.

References #5704.

12/05/06 22:48:35 changed by lourens

  • attachment monkey_patch.rb added.

Temporary monkey patch to solve this problem

12/19/06 19:47:22 changed by bitsweat

  • status changed from new to closed.
  • resolution set to fixed.

(In [5753]) Partially revert [5660] - makes more trouble than it resolves. References #5704, closes #6766.

03/04/07 13:48:24 changed by bitsweat

  • keywords changed from sti 1.2regression to sti.
  • milestone changed from 1.2 to 1.2 regressions.