Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

initialize @inside_template

fixes: "warning: instance variable @inside_template not initialized"
  • Loading branch information...
commit 9aa10a79f93fb5011a7f2eac282c75d157c5d08d 1 parent 505defc
@amatsuda amatsuda authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  railties/lib/rails/generators/named_base.rb
View
1  railties/lib/rails/generators/named_base.rb
@@ -13,6 +13,7 @@ class NamedBase < Base
:desc => "Force using old style hash (:foo => 'bar') on Ruby >= 1.9"
def initialize(args, *options) #:nodoc:
+ @inside_template = nil
# Unfreeze name in case it's given as a frozen string
args[0] = args[0].dup if args[0].is_a?(String) && args[0].frozen?
super
Please sign in to comment.
Something went wrong with that request. Please try again.