intridea/rails_wizard — Issue #42: run_after not managing control flow
Author: spinlock99
Created: 2011-11-02 20:43:51+00:00
State: open

Hi there. I'm trying to write a recipe that will add omniauth support to devise called devise\_omniauth.rb. I want to execute the devise recipe before it runs so I have set up my configuration like this:

__END__

name: DeviseOmniAuth
description: "Adds OmniAuth support to a Devise setup."
author: spinlock

requires: [devise]
run_after: [devise]

However, the devise\_omniauth recipe is running _before_ the devise recipe - not after it as I expected. I've tried run_before: and it does not change the flow of which recipe is run first.

Please let me know what else I can do to help resolve this issue. I'm really enjoying RailsWizard so far but my templates are very brittle because the order you add the recipes matters. I think(tm) it would be better to handle control flow and dependencies inside the recipe and I look forward to helping make this a reality :)

Thanks,
Andrew