Sha256: ce6144ee483a2f5e9b2ffbb29584354cbb3ed84e1299d38cbe98c4b47663627b

Contents?: true

Size: 297 Bytes

Versions: 1

Compression:

Stored size: 297 Bytes

Contents

class User < ApplicationRecord
  include Recommender::Recommendation

  has_many :movie_likes, dependent: :destroy
  has_many :movies, through: :movie_likes
  has_and_belongs_to_many :albums

  validates :name, presence: true,  uniqueness: { case_sensitive: false }

  set_association :movies
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
recommender-2.0.1 spec/test_app/app/models/user.rb