News for hackers. Stuff that matters.
Re:My Beef with RuboCop by dragonwriter on Thursday November 19, 2020 @05:13PM (#25154997)
I dunno, I think the correct answer for the specific code is a one-line ternary:

  class SanitizingFilter < HTMLFilter
    def render_element(name, attrs, content)
      safe?(name, attrs) ? super : nil
    end
  end

There are no comments on this comment yet.