I’m just starting to play around with rails and while creating a controller I ran into something funny. It might be my set up, maybe it’s my linter.
In the controller class, I’ve set the layout to false
for now. (Following along in a course) This all runs without error, but the linter (ruby-lint), complains that the method layout
is undefined. If I use self.class.layout
it continues to work and the linter does not complain.
Is the course material incorrect? Or maybe just bad practice?
I would assume that any class methods defined in the parent do not require such explicit calls.