Skip to content

following the document but zeitwerk error happened #12517

Closed Answered by lion-man44
lion-man44 asked this question in Q&A
Discussion options

You must be logged in to vote

I made mistakes on this error.

  1. File path should be like this lib/rubo_cop/cop/style/simplify_not_empty_with_any.rb.
  2. It need the line require 'rubocop' at the beginning.
    • but if you write it one file, no need to write other file. So I recommend to write it in config/environments/test.rb

This is not a bug, but it's kind hard to read the document.

Thanks.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lion-man44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant