Skip to content

Commit 05d8876

Browse files
authored
Merge pull request #8928 from agrare/fix_entry_point_camelize
Fix .camelize after a &. safe navigation
2 parents efd98a2 + ac0ed80 commit 05d8876

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/views/catalog/_provision_entry_point.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
= text_field_tag("fqname",
1111
edit_new[:fqname],
1212
:class => "form-control long_text entry_point_text",
13-
:placeholder => type&.gsub('_',' ').camelize,
13+
:placeholder => type&.gsub('_',' ')&.camelize,
1414
"data-miq_observe" => {:interval => '.5', :url => url}.to_json)
1515
%span.input-group-btn
1616
#fqname_div

app/views/catalog/_reconfigure_entry_point.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
= text_field_tag("reconfigure_fqname",
1111
edit_new[:reconfigure_fqname],
1212
:class => "form-control long_text entry_point_text",
13-
:placeholder => type&.gsub('_',' ').camelize,
13+
:placeholder => type&.gsub('_',' ')&.camelize,
1414
"data-miq_observe" => {:interval => '.5', :url => url}.to_json)
1515
%span.input-group-btn
1616
#reconfigure_fqname_div

app/views/catalog/_retire_entry_point.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
= text_field_tag("retire_fqname",
1111
edit_new[:retire_fqname],
1212
:class => "form-control long_text entry_point_text",
13-
:placeholder => type&.gsub('_',' ').camelize,
13+
:placeholder => type&.gsub('_',' ')&.camelize,
1414
"data-miq_observe" => {:interval => '.5', :url => url}.to_json)
1515
%span.input-group-btn
1616
#retire_fqname_div

0 commit comments

Comments
 (0)