Sha256: 35839f71da7f2395b498fa6c961a554162261dbf93407eadd5e763fc528223f1

Contents?: true

Size: 431 Bytes

Versions: 77

Compression:

Stored size: 431 Bytes

Contents

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 create_mailer_file
        template "mailer.rb", File.join('app/mailers', class_path, "#{file_name}.rb")
      end

      hook_for :template_engine, :test_framework
    end
  end
end

Version data entries

77 entries across 77 versions & 3 rubygems

Version Path
actionmailer-4.1.16 lib/rails/generators/mailer/mailer_generator.rb
actionmailer-4.1.16.rc1 lib/rails/generators/mailer/mailer_generator.rb
actionmailer-4.1.15 lib/rails/generators/mailer/mailer_generator.rb
actionmailer-4.1.15.rc1 lib/rails/generators/mailer/mailer_generator.rb
actionmailer-4.1.14.2 lib/rails/generators/mailer/mailer_generator.rb
actionmailer-4.1.14.1 lib/rails/generators/mailer/mailer_generator.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/actionmailer-4.1.13/lib/rails/generators/mailer/mailer_generator.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/actionmailer-4.1.13/lib/rails/generators/mailer/mailer_generator.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/actionmailer-4.1.13/lib/rails/generators/mailer/mailer_generator.rb
actionmailer-4.1.14 lib/rails/generators/mailer/mailer_generator.rb
actionmailer-4.1.14.rc2 lib/rails/generators/mailer/mailer_generator.rb
actionmailer-4.1.14.rc1 lib/rails/generators/mailer/mailer_generator.rb
actionmailer-4.1.13 lib/rails/generators/mailer/mailer_generator.rb
actionmailer-4.1.13.rc1 lib/rails/generators/mailer/mailer_generator.rb
actionmailer-4.1.12 lib/rails/generators/mailer/mailer_generator.rb
actionmailer-4.1.12.rc1 lib/rails/generators/mailer/mailer_generator.rb
actionmailer-4.1.11 lib/rails/generators/mailer/mailer_generator.rb
actionmailer-4.1.10 lib/rails/generators/mailer/mailer_generator.rb
actionmailer-4.1.10.rc4 lib/rails/generators/mailer/mailer_generator.rb
actionmailer-4.1.10.rc3 lib/rails/generators/mailer/mailer_generator.rb