How to use "#noinspection RubyResolve" inside HAML template?

Hey all,

I want to clean my haml template files from warnings about unresolved methods.


I have following code:


%div
  -if current_user.is_admin? || current_user.is_operator?
    = to_something

Where is_admin? and is_operator? methods came from easy_roles gem.
I constantly receive "Unresolved Ruby reference" warning.

How to avoid this?

Placing "#noinspection RubyResolve" like in general ruby files does not do the trick.

Thanks!

Please sign in to leave a comment.