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

Version Path
ibm_db-5.2.0 test/models/user.rb
ibm_db-5.1.0 test/models/user.rb
ibm_db-5.0.5 test/models/user.rb
ibm_db-5.0.4 test/models/user.rb
ibm_db-5.0.3 test/models/user.rb
ibm_db-5.0.2 test/models/user.rb
ibm_db-4.0.0-x86-mingw32 test/models/user.rb
ibm_db-4.0.0 test/models/user.rb