Ticket #463 (closed defect: duplicate)

Opened 11 months ago

Last modified 10 months ago

ActiveRecord model loading for STI fails unless require parent defined

Reported by: smartoc..@gmail.com Assigned to:
Priority: medium Milestone: The Future
Component: Merb Keywords: STI
Cc: ivey@gweezlebur.com

Description

In ActiveRecord? STI does not require a require statement of the parent class to load models. In Merb if the child class appears before the parent alphabetically the model will fail to load instead of looking for the parent.

It may be Merb policy that require statements are used in child models, but this is common practice that will make the rails -> merb transition slightly harder.

Change History

01/17/08 15:11:04 changed by iv..@gweezlebur.com

  • cc set to iv..@gweezlebur.com.

01/17/08 15:11:55 changed by iv..@gweezlebur.com

  • owner changed.
  • component changed from Plugin: ActiveRecord to Merb.

This isn't AR specific, it's true of any inheritance you do.

02/11/08 13:37:43 changed by shayarne..@gmail.com

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