Skip to content

Instantly share code, notes, and snippets.

View slemiere's full-sized avatar

Sylvain Lemiere slemiere

View GitHub Profile
# MODEL
class Case < ActiveRecord::Base
include Eventable
has_many :tasks
concerning :Assignment do
def assign_to(new_owner:, details:)
transaction do