spec/models/user.rb in bullet-6.1.2 vs spec/models/user.rb in bullet-6.1.3
- old
+ new
@@ -1,6 +1,7 @@
# frozen_string_literal: true
class User < ActiveRecord::Base
has_one :submission
+ has_one :submission_attachment, through: :submission, source: :attachment, class_name: 'Attachment'
belongs_to :category
end