concern

Move one record to trash using Rails concern

Useful concern to allow you to move records to the trash without deleting the record. Please, write a migration to add the column trashed_at to your table

Concern class with model dependent variations

by jarenas

Rails Trackable Concern: Automatically Set Created By

The Trackable concern automatically assigns the created_by field when a record is created, using Current.user. This keeps model logic clean while ensuring proper tracking of record ownership. The Post model includes Trackable, to get this functionalit

Ruby on Rails Concern for Soft Deletable Records Without Losing Data