From b4ac65aa3855b806442934f6287d681e8bb0ef70 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Mon, 7 Jan 2013 22:51:16 -0200 Subject: [PATCH] Initialize instance variable to remove warning actions.rb:34: warning: instance variable @in_group not initialized --- railties/lib/rails/generators/actions.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/railties/lib/rails/generators/actions.rb b/railties/lib/rails/generators/actions.rb index 71cb0b903b..cb3aca5811 100644 --- a/railties/lib/rails/generators/actions.rb +++ b/railties/lib/rails/generators/actions.rb @@ -4,6 +4,10 @@ require 'rbconfig' module Rails module Generators module Actions + def initialize(*) # :nodoc: + super + @in_group = nil + end # Adds an entry into Gemfile for the supplied gem. #