Skip to content

Commit

Permalink
Fixed issue with dependent modules in Rails 2 generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed May 24, 2010
1 parent 708f053 commit 84a0259
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/generators/vulcanize/vulcanize_generator.rb
Expand Up @@ -26,8 +26,11 @@ def apply_template(m, name)
raise Rails::Generator::UsageError.new("Invalid template #{name}, use one of #{valid_templates.join(', ')}")
end

@template_dependencies ||= []

templ_conf = load_template_config(sp)
deps = templ_conf['dependent_templates'] || []
@template_dependencies.concat(deps)
deps.each do |dep|
apply_template(m, dep)
end
Expand Down

0 comments on commit 84a0259

Please sign in to comment.