diff options
author | Andy Jeffries <andy@andyjeffries.co.uk> | 2014-11-24 09:37:32 +0000 |
---|---|---|
committer | Andy Jeffries <andy@andyjeffries.co.uk> | 2014-11-24 09:37:49 +0000 |
commit | a58da25d90962a39ad916fc4de22a0a0c81ba034 (patch) | |
tree | 7eba388d3e4642007514acb1201ffdbbfabda037 | |
parent | 38cfaa828502b2f5d137a6a2952c68ae5efc15b1 (diff) | |
download | rails-a58da25d90962a39ad916fc4de22a0a0c81ba034.tar.gz rails-a58da25d90962a39ad916fc4de22a0a0c81ba034.tar.bz2 rails-a58da25d90962a39ad916fc4de22a0a0c81ba034.zip |
Removing unnecessary File.join calls
-rw-r--r-- | actionmailer/lib/rails/generators/mailer/mailer_generator.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/generators/erb/mailer/mailer_generator.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actionmailer/lib/rails/generators/mailer/mailer_generator.rb b/actionmailer/lib/rails/generators/mailer/mailer_generator.rb index 97a01f9ef3..094ec85114 100644 --- a/actionmailer/lib/rails/generators/mailer/mailer_generator.rb +++ b/actionmailer/lib/rails/generators/mailer/mailer_generator.rb @@ -8,7 +8,7 @@ module Rails def create_mailer_file template "mailer.rb", File.join('app/mailers', class_path, "#{file_name}.rb") - template "application_mailer.rb", File.join('app/mailers/application_mailer.rb') + template "application_mailer.rb", 'app/mailers/application_mailer.rb' end hook_for :template_engine, :test_framework diff --git a/railties/lib/rails/generators/erb/mailer/mailer_generator.rb b/railties/lib/rails/generators/erb/mailer/mailer_generator.rb index b047973241..1e290bb938 100644 --- a/railties/lib/rails/generators/erb/mailer/mailer_generator.rb +++ b/railties/lib/rails/generators/erb/mailer/mailer_generator.rb @@ -7,7 +7,7 @@ module Erb # :nodoc: view_base_path = File.join("app/views", class_path, file_name) empty_directory view_base_path - layout_base_path = File.join("app/views/layouts") + layout_base_path = "app/views/layouts" actions.each do |action| @action = action |