Set_table_name and fixtures

Hello, I’ve encountered a fixtures really frustrating bug : model, YAML
file and db table names must be the same because of the fixture library
ignoring the set_table_name provided in the model.

Is there anything to do ?

Thanks

On 4/1/06, Christophe G. [email protected] wrote:

Hello, I’ve encountered a fixtures really frustrating bug : model, YAML
file and db table names must be the same because of the fixture library
ignoring the set_table_name provided in the model.

Is there anything to do ?

Thanks

Yeah, this bugged me too, so I implemented it as a patch:
http://supremetyrant.com/ruby/sti_compatible_fixtures.patch

At the moment, the core team doesn’t seem enthusiastic about the need
for it. Possibly there’s some forthcoming redesign of fixtures in
general.

Still, I’ll throw it out there if it has any value for you.

–Wilson.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs