templates/layout.erb in ey_rails_wizard-0.3.1 vs templates/layout.erb in ey_rails_wizard-0.4.0

- old
+ new

@@ -17,29 +17,29 @@ initializer 'generators.rb', <<-RUBY Rails.application.config.generators do |g| end RUBY -@recipes = <%= resolve_recipes.map(&:key).inspect %> +@scrolls = <%= resolve_scrolls.map(&:key).inspect %> <%= render "helpers" %> -<% resolve_recipes.each do |recipe| %> -<%= render 'recipe', recipe.get_binding %> +<% resolve_scrolls.each do |scroll| %> +<%= render 'scroll', scroll.get_binding %> <% end %> <% if custom_code? %># >-----------------------------[ Custom Code ]-------------------------------< <%= custom_code %><% end %> -@current_recipe = nil +@current_scroll = nil # >-----------------------------[ Run Bundler ]-------------------------------< say_wizard "Running Bundler install. This will take a while." run 'bundle install' say_wizard "Running after Bundler callbacks." -@after_blocks.each{|b| config = @configs[b[0]] || {}; @current_recipe = b[0]; b[1].call} +@after_blocks.each{|b| config = @configs[b[0]] || {}; @current_scroll = b[0]; b[1].call} -@current_recipe = nil +@current_scroll = nil say_wizard "Running after everything callbacks." -@after_everything_blocks.each{|b| config = @configs[b[0]] || {}; @current_recipe = b[0]; b[1].call} +@after_everything_blocks.each{|b| config = @configs[b[0]] || {}; @current_scroll = b[0]; b[1].call}