-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Description
Good day,
Thanks for a great gem. I've ran into what seems to be a questionable behavior that might be not safe to autocorrect.
We have a following code snippet:
<div>
<%=
form.select :group_key, (Array.wrap(@gift_card_offer.group_key) + Rewards::Retailer.pluck(:group_key).uniq).sort,
{include_blank: true, selected: @gift_card_offer.group_key},
{"data-admin--groupkey-target": "output"}
%>
</div>
That turned into
<div>
form.select :group_key, (Array.wrap(@gift_card_offer.group_key) + Rewards::Retailer.pluck(:group_key).uniq).sort,
{include_blank: true, selected: @gift_card_offer.group_key},
{"data-admin--groupkey-target": "output"}
%>
</div>
as you can see <%= was removed. this is not an issue, if <%= and reuby expression is on same line. But doing such "autocorrection" doesn't seem safe to me?
Kernael, garethson, hss-mateus, tony-rowan, jdelStrother and 10 more
Metadata
Metadata
Assignees
Labels
No labels