diff options
author | José Valim <jose.valim@gmail.com> | 2010-04-30 12:42:12 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-04-30 12:42:12 +0200 |
commit | cde168edbbe2d95dd8af40524dd9f42220481ef6 (patch) | |
tree | 6ef74c744eed96c69d6f7f0544cb998a37559ee4 /actionmailer/lib/rails/generators | |
parent | 7b98d2aa59e301c91d764262bba55133fef3538a (diff) | |
download | rails-cde168edbbe2d95dd8af40524dd9f42220481ef6.tar.gz rails-cde168edbbe2d95dd8af40524dd9f42220481ef6.tar.bz2 rails-cde168edbbe2d95dd8af40524dd9f42220481ef6.zip |
Update generators to use thor 0.13.6 with simpler source_root handling.
Diffstat (limited to 'actionmailer/lib/rails/generators')
-rw-r--r-- | actionmailer/lib/rails/generators/mailer/mailer_generator.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/actionmailer/lib/rails/generators/mailer/mailer_generator.rb b/actionmailer/lib/rails/generators/mailer/mailer_generator.rb index 8f47539f42..dd7fa640c9 100644 --- a/actionmailer/lib/rails/generators/mailer/mailer_generator.rb +++ b/actionmailer/lib/rails/generators/mailer/mailer_generator.rb @@ -1,13 +1,11 @@ module Rails module Generators class MailerGenerator < NamedBase + source_root File.expand_path("../templates", __FILE__) + argument :actions, :type => :array, :default => [], :banner => "method method" check_class_collision - def self.source_root - File.expand_path("../templates", __FILE__) - end - def create_mailer_file template "mailer.rb", File.join('app/mailers', class_path, "#{file_name}.rb") end |