From 94031ef422357e5802c965a9e8365e5494e7cc2f Mon Sep 17 00:00:00 2001 From: Samuel Kadolph Date: Sat, 12 Mar 2011 03:22:19 +0800 Subject: [PATCH] Add require 'date' to use Date.today in plugin template MIT-LICENSE --- .../rails/generators/rails/plugin_new/plugin_new_generator.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb b/railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb index 8b1aed974f..5b4687ce64 100644 --- a/railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb +++ b/railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb @@ -1,5 +1,6 @@ require 'active_support/core_ext/hash/slice' require "rails/generators/rails/app/app_generator" +require 'date' module Rails class PluginBuilder