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