diff options
author | Akira Matsuda <ronnie@dio.jp> | 2011-05-18 20:48:54 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2011-05-18 23:19:13 +0900 |
commit | 9aa10a79f93fb5011a7f2eac282c75d157c5d08d (patch) | |
tree | ca5a3f1132e60f977e4e25fba81ec4eb957db86b /railties | |
parent | 505defc27ead21c3bab05aa0cde11dddfbd0d179 (diff) | |
download | rails-9aa10a79f93fb5011a7f2eac282c75d157c5d08d.tar.gz rails-9aa10a79f93fb5011a7f2eac282c75d157c5d08d.tar.bz2 rails-9aa10a79f93fb5011a7f2eac282c75d157c5d08d.zip |
initialize @inside_template
fixes: "warning: instance variable @inside_template not initialized"
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/named_base.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/named_base.rb b/railties/lib/rails/generators/named_base.rb index cf317eb21f..7e7f8d2d08 100644 --- a/railties/lib/rails/generators/named_base.rb +++ b/railties/lib/rails/generators/named_base.rb @@ -13,6 +13,7 @@ module Rails :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 |