I would suggest stopping the warnings with inline comments.
It was also voted on in the Issue #271.
+ def index # rails_best_practices:disable MoveModelLogicIntoModelCheck
- def index
@users = User.all
@users = @users.enabled if params[:enabled].
@users = @users.junior if params[:junior].
...
end
I get the MoveModelLogicIntoModelCheck warning in Controller.
However, I believe there is some code that does not need to be moved to Model.
I would like to stop the warning for this method only.
I want to use rails_best_practices:disable or rails_bp:disable to stop the warnings.
I would suggest stopping the warnings with inline comments. It was also voted on in the Issue #271.
I get the MoveModelLogicIntoModelCheck warning in Controller. However, I believe there is some code that does not need to be moved to Model. I would like to stop the warning for this method only. I want to use
rails_best_practices:disable
orrails_bp:disable
to stop the warnings.