diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-04-09 10:26:49 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-04-09 10:26:49 -0700 |
commit | ad22017bdcc77793f9103eb01ebb6b4232206b72 (patch) | |
tree | 5a6e9fadfdbaafec24e0a52289ded8c8364963ce | |
parent | ec8e747960da9c0413cb5da7834f458bc5dd8ce1 (diff) | |
download | rails-ad22017bdcc77793f9103eb01ebb6b4232206b72.tar.gz rails-ad22017bdcc77793f9103eb01ebb6b4232206b72.tar.bz2 rails-ad22017bdcc77793f9103eb01ebb6b4232206b72.zip |
Use thor shorthand for indicating that application.html.erb is a template
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 7 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/app/views/layouts/.empty_directory | 0 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt (renamed from railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb) | 0 |
3 files changed, 1 insertions, 6 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index 192792d078..bb2a080286 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -78,12 +78,7 @@ module Rails::Generators end def create_app_files - directory "app/controllers" - directory "app/helpers" - directory "app/models" - inside "app/views/layouts" do - template "application.html.erb" - end + directory 'app' end def create_config_files diff --git a/railties/lib/rails/generators/rails/app/templates/app/views/layouts/.empty_directory b/railties/lib/rails/generators/rails/app/templates/app/views/layouts/.empty_directory deleted file mode 100644 index e69de29bb2..0000000000 --- a/railties/lib/rails/generators/rails/app/templates/app/views/layouts/.empty_directory +++ /dev/null diff --git a/railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb b/railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt index 1dd112b4a6..1dd112b4a6 100644 --- a/railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb +++ b/railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt |