diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 315b795..4389858 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -38,14 +38,6 @@ Metrics/MethodLength: Metrics/PerceivedComplexity: Max: 13 -# Offense count: 1 -# This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: EnforcedStyleForLeadingUnderscores. -# SupportedStylesForLeadingUnderscores: disallowed, required, optional -Naming/MemoizedInstanceVariableName: - Exclude: - - 'lib/generators/comment/comment_generator.rb' - # Offense count: 2 # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros. # NamePrefix: is_, has_, have_ diff --git a/lib/generators/comment/comment_generator.rb b/lib/generators/comment/comment_generator.rb index 48f0add..3f1b157 100644 --- a/lib/generators/comment/comment_generator.rb +++ b/lib/generators/comment/comment_generator.rb @@ -4,7 +4,7 @@ class CommentGenerator < Rails::Generators::Base include Rails::Generators::Migration def self.source_root - @_acts_as_commentable_source_root ||= File.expand_path('templates', __dir__) + @source_root ||= File.expand_path('templates', __dir__) end def self.next_migration_number(_path)