joseramonc / rails-snippets

:shipit:
http://codn.mx/en
MIT License
43 stars 24 forks source link

Incompatibility with ruby-language package #27

Closed Albertc closed 7 years ago

Albertc commented 7 years ago

If I install rails-snippets package, the else behaves like elseif, in a .rb file (controller or model)

when typing else: image

and when you press enter, or choose with mouse "else": image

It happens in aif - else or in a when If you want a else, and not elseif true, you have to delte back

joseramonc commented 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?

Albertc commented 7 years ago

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

joseramonc commented 7 years ago

I fixed that snippet, closing for now, but if you have more suggestions for the snippets feel free to open more issues