Sha256: c706b78b5f3c9be8cf4e15dbfc5b60d9e8efc8a692276c4d3e80ccc0b27d5a61

Contents?: true

Size: 569 Bytes

Versions: 24

Compression:

Stored size: 569 Bytes

Contents

class User < ActiveRecord::Base
  # Rolify Gem
  rolify

  # FriendlyId Gem
  extend FriendlyId
  friendly_id :display_name, use: :slugged

  # Devise Gem
  # Include default devise modules. Others available are:
  # :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable

  # MessageTrain Gem
  message_train(
    name_column: :display_name,
    address_book_method: :valid_recipients_for
  )

  def self.valid_recipients_for(_sender)
    all
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
message_train-0.7.6 spec/dummy/app/models/user.rb
message_train-0.7.5 spec/dummy/app/models/user.rb
message_train-0.7.3 spec/dummy/app/models/user.rb
message_train-0.7.2 spec/dummy/app/models/user.rb
message_train-0.7.1 spec/dummy/app/models/user.rb
message_train-0.6.17 spec/dummy/app/models/user.rb
message_train-0.6.16 spec/dummy/app/models/user.rb
message_train-0.6.15 spec/dummy/app/models/user.rb
message_train-0.6.14 spec/dummy/app/models/user.rb
message_train-0.6.13 spec/dummy/app/models/user.rb
message_train-0.6.12 spec/dummy/app/models/user.rb
message_train-0.6.11 spec/dummy/app/models/user.rb
message_train-0.6.10 spec/dummy/app/models/user.rb
message_train-0.6.9 spec/dummy/app/models/user.rb
message_train-0.6.8 spec/dummy/app/models/user.rb
message_train-0.6.7 spec/dummy/app/models/user.rb
message_train-0.6.6 spec/dummy/app/models/user.rb
message_train-0.6.5 spec/dummy/app/models/user.rb
message_train-0.6.4 spec/dummy/app/models/user.rb
message_train-0.6.3 spec/dummy/app/models/user.rb