dawarich/config
Claude 9fba3ce4ca
Refactor: Move trip sharing management to trips#update
Simplifies architecture by using the existing trips#update route for
sharing settings management instead of a separate route.

## Changes

**Routes**
- Removed: PATCH /trips/:id/sharing → shared/trips#update
- Now uses: PATCH /trips/:id (existing route) with sharing params

**Controllers**
- Shared::TripsController: Simplified to only handle public view (show)
- TripsController: Added update_sharing private method to handle
  sharing params when present

**Views**
- Updated JavaScript in _sharing.html.erb to use trip_path with
  nested sharing params

**Tests**
- Updated request specs to use trip_path instead of sharing_trip_path
- All params now nested under sharing key

## Benefits
- Cleaner namespace separation (Shared:: only for public access)
- Follows Rails conventions (one update route handles everything)
- Simpler routing structure
- Reduced code duplication

## Backwards Compatibility
This is a breaking change for the sharing API endpoint, but since
this feature was just implemented and hasn't been released yet,
no migration path is needed.
2025-11-05 15:54:42 +00:00
..
environments Compile assets in staging environment 2025-10-05 21:24:47 +02:00
initializers Use family path instead of families/id 2025-10-04 22:39:47 +02:00
locales Add nice statistics 2024-03-23 21:16:11 +01:00
application.rb Add limits for import size for trial users 2025-08-14 20:50:22 +02:00
boot.rb Initial Rails 7.0.2.3 template w/ rspec, tailwind, and devise user 2022-04-06 22:46:10 +04:00
cable.yml Add staging environment configuration 2025-09-26 19:48:52 +02:00
database.ci.yml Update database config for CI 2025-01-29 11:49:15 +01:00
database.yml Add staging environment configuration 2025-09-26 19:48:52 +02:00
environment.rb Move cache jobs to initializers 2025-06-01 15:31:53 +02:00
favicon.json Add favicon and allow setting concurrency via BACKGROUND_PROCESSING_CONCURRENCY 2024-06-07 19:22:39 +02:00
importmap.rb Implement real-time family member location updates via ActionCable 2025-10-13 14:10:36 +02:00
puma.rb Remove solid trifecta 2025-06-09 13:50:43 +02:00
routes.rb Refactor: Move trip sharing management to trips#update 2025-11-05 15:54:42 +00:00
schedule.yml Clean up some code 2025-10-04 23:19:00 +02:00
sidekiq.yml Refactor family membership and invitation policies for clarity and security 2025-10-13 12:23:01 +02:00
storage.yml Merge from dev 2025-04-04 20:14:44 +02:00
tailwind.config.js Initial Rails 7.0.2.3 template w/ rspec, tailwind, and devise user 2022-04-06 22:46:10 +04:00