Skip to content

Commit

Permalink
Chore: Remove Rails UJS (#4276)
Browse files Browse the repository at this point in the history
Because:
* Rails Ujs has been depreciated in favor of Hotwire.
  • Loading branch information
KevinMulhern authored Nov 23, 2023
1 parent 3e05234 commit 2a3c789
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion app/components/notification_component.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= link_to notification_path(@notification), method: :patch, class: 'no-underline px-4 py-4', data: { test_id: "notification-#{@notification.id}" } do %>
<%= link_to notification_path(@notification), class: 'no-underline px-4 py-4', data: { turbo_method: :patch, test_id: "notification-#{@notification.id}" } do %>
<li class="bg-white dark:bg-gray-800 dark:shadow-none dark:ring-1 dark:ring-white/10 dark:ring-inset shadow overflow-hidden p-4 sm:rounded-md">
<div class="flex">
<div class="mr-4 flex-shrink-0">
Expand Down
3 changes: 0 additions & 3 deletions app/javascript/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@
// const images = require.context('../images', true)
// const imagePath = (name) => images(name, true)

import Rails from '@rails/ujs';
import 'core-js/stable';
import 'regenerator-runtime/runtime';
import 'hint.css/hint.min.css';
import '@fortawesome/fontawesome-free/css/all.css';
import 'controllers';
import '@hotwired/turbo-rails';
import './src/custom_turbo_stream_actions';

Rails.start();
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"@hotwired/stimulus-webpack-helpers": "^1.0.1",
"@hotwired/turbo-rails": "^7.3.0",
"@rails/request.js": "^0.0.9",
"@rails/ujs": "^7.0.8",
"@sentry/browser": "^7.66.0",
"@stimulus/polyfills": "^2.0.0",
"@tailwindcss/forms": "^0.5.7",
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2a3c789

Please sign in to comment.