Sha256: a676814dc2be22adb3cacbab95925260f4ec721b182a0d3cc5646fd6b55c6aff

Contents?: true

Size: 296 Bytes

Versions: 1

Compression:

Stored size: 296 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-0.1.0 spec/test_app/app/models/user.rb