Class: RbsActionmailer::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- RbsActionmailer::InstallGenerator
- Defined in:
- lib/generators/rbs_actionmailer/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_raketask ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/generators/rbs_actionmailer/install_generator.rb', line 5 def create_raketask create_file "lib/tasks/rbs_actionmailer.rake", <<~RUBY # frozen_string_literal: true begin require "rbs_actionmailer/rake_task" RbsActionmailer::RakeTask.new rescue LoadError # failed to load rbs_actionmailer. Skip to load rbs_actionmailer tasks. end RUBY end |