How to configure only one generator to skip stylesheets

Hey fellas,

I am trying to configure the scaffold generator to skip stylesheets. I
currently do the following:

config.generators do |g|
    g.stylesheets false
end

Which works on all generators. How can I force it to selectively skip
stylesheets depending on the generator, in my case the scaffold?

I tried something like:

config.generators do |g|
g.stylesheets false if g == :scaffold
end

But it did not work. Any ideas?

Hey fellas,

I am trying to configure the scaffold generator to skip stylesheets. I
currently do the following:

config.generators do |g|
    g.stylesheets false
end

Which works on all generators. How can I force it to selectively skip
stylesheets depending on the generator, in my case the scaffold?

I tried something like:

config.generators do |g|
g.stylesheets false if g == :scaffold
end

But it did not work. Any ideas?


Wael

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