Inspection "Expected: p| (at line xxx)"

Can somebody tell me what the inspection error given above is all about?

A code snippet, where it is raised:

  before_filter :only => [:show, :index], do |controller|
    controller.has_authorityobject("may_finish_baskets")
  end



The code works perfectly fine. I get it in lots of

method do |instance|
  block
end

cases, but not in all of them.
1 comment
Comment actions Permalink

I had the same problem, and it was driving me crazy...

Here's the fix - Remove the comma after the ']'  :)

0

Please sign in to leave a comment.