Andreas Nedbal
4408de33cc
Setup turbo_stream_actions before before_actions
...
Because apparently the error catching -> toast logic was not there yet and people might run into a 500 error redirect when pressing the button.
2025-02-21 23:25:22 +01:00
Jyrki Gadinger
1e5a2082dc
enforce readonly on create/update endpoints
2025-02-21 23:25:22 +01:00
Andreas Nedbal
cc7fa787e8
Pass IDs to Reaction usecases instead of user instances
...
For some wild reason this locally sometimes causes coercion errors in the user instance check, restarting fixes it (temporarily?) so letting the UseCase resolve users is a cleaner solution here.
2024-03-19 22:45:19 +01:00
Andreas Nedbal
8ddfcef259
Fix rubocop nits
2023-12-09 00:59:14 +01:00
Andreas Nedbal
a00d268f56
Move target class code into a private method
2023-12-09 00:59:14 +01:00
Andreas Nedbal
9872d3aace
Implement reaction create/destroy with Turbo Streams
2023-12-09 00:59:14 +01:00
Andreas Nedbal
ca043d56ef
Rename ReactionController
to ReactionsController
2023-10-29 21:52:38 +01:00