This project is archived and is in readonly mode.

#3937 ✓invalid
Joe F.

g.fixture_replacement ignored

Reported by Joe F. | February 12th, 2010 @ 12:09 AM

My config/application.rb has:

config.generators do |g|
   g.fixture_replacement :factory_girl

and I have factory_girl generators downloaded from:

If I run

rails generate scaffold Article title:string body:text

it creates a yml fixture. If I run it with


then it works. Sounds to me like it's ignoring g.fixture_replacement. Tried to dig into the code, unfortunately didn't have time to figure out the method_missing call in Rails::Configuration::Generators. Any thoughts?

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>