Skip to content

Commit b4d7b7d

Browse files
committed
Update generated templates
1 parent 3c2f6dd commit b4d7b7d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/generators/superglue/install/templates/application.json.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ end
1515

1616
if path
1717
json.action 'graft'
18-
json.path params[:props_at]
18+
json.path json.found_path!
19+
json.fragmentContext json.fragment_context!
1920
else
2021
json.action 'savePage'
2122
end

test/dummy/app/views/layouts/application.json.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ end
1515

1616
if path
1717
json.action 'graft'
18-
json.path params[:props_at]
18+
json.path json.found_path!
19+
json.fragmentContext json.fragment_context!
1920
else
2021
json.action 'savePage'
2122
end

0 commit comments

Comments
 (0)