Closed Albertc closed 7 years ago
You're right, maybe deleting or fixing those snippets (or at least let else
behave like else
instead of elsif
) would be the expected.
Do you think it's worth to keep elsif
snippets?
I'm afraid than incompatibility can be in more snippets, not only in else-elseif, I 'm not sure, for know I will delelte else and elseif snippet in local Thanks
I fixed that snippet, closing for now, but if you have more suggestions for the snippets feel free to open more issues
If I install rails-snippets package, the else behaves like elseif, in a .rb file (controller or model)
when typing else:
and when you press enter, or choose with mouse "else":
It happens in a
if - else
or in awhen
If you want aelse
, and notelseif true
, you have to delte back