diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-17 19:33:21 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-19 16:11:54 +0200 |
commit | 768d7634360b474a5b59cfd98e5d6362f8b94894 (patch) | |
tree | f65be61537b01e0f9c93e468a69448dcefba379f /railties/lib/generator/generators | |
parent | 9b82fa159a4d1f4f1e4b2932f43d76d9fc74da21 (diff) | |
download | rails-768d7634360b474a5b59cfd98e5d6362f8b94894.tar.gz rails-768d7634360b474a5b59cfd98e5d6362f8b94894.tar.bz2 rails-768d7634360b474a5b59cfd98e5d6362f8b94894.zip |
Apply template when required.
Diffstat (limited to 'railties/lib/generator/generators')
-rw-r--r-- | railties/lib/generator/generators/app.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/generator/generators/app.rb b/railties/lib/generator/generators/app.rb index 6a7edc5934..a9da54b67e 100644 --- a/railties/lib/generator/generators/app.rb +++ b/railties/lib/generator/generators/app.rb @@ -167,6 +167,10 @@ module Rails::Generators empty_directory "vendor/plugins" end + def apply_rails_template + apply options[:template] if options[:template] + end + def freeze? freeze! if options[:freeze] end |