Sha256: 043e738ecfd19c92117ea4a4f7f64dcaac3ed2403f3d4d5f89507e8ce21b4616
Contents?: true
Size: 318 Bytes
Versions: 8
Compression:
Stored size: 318 Bytes
Contents
require 'models/job' class User < ActiveRecord::Base has_secure_token has_secure_token :auth_token has_and_belongs_to_many :jobs_pool, class_name: Job, join_table: 'jobs_pool' end class UserWithNotification < User after_create -> { Notification.create! message: "A new user has been created." } end
Version data entries
8 entries across 8 versions & 1 rubygems