Class: RubocopRailsConfig::Generators::UpdateGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- RubocopRailsConfig::Generators::UpdateGenerator
- Defined in:
- lib/generators/rubocop_rails_config/update_generator.rb
Instance Method Summary collapse
Instance Method Details
#update_config_file ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/generators/rubocop_rails_config/update_generator.rb', line 11 def update_config_file if old_gem_name_used? gsub_file config_file_path, "rubocop-rails:", "rubocop-rails_config:" else puts "Your config is up-to-date. Nothing to update." end end |