내가 관계를 할 노력하고있어이 페이지에서 볼레일 mailboxer 알림 관계
has_many :notifications, foreign_key: :notified_object_id, conditions: {notified_object_type: 'AppShare'}, dependent: :destroy
: 때문에 레일의
has_many :notifications, -> { where(notified_object_type: 'Assigment') }, foreign_key: "notified_object_id", dependent: :destroy
: 나는 그것을 변경 http://blog.meldium.com/home/2013/4/22/dont-spam-your-users-batch-notifications-in-rails
4 문법을 사용하지만 다음과 같이 나타납니다.
uniniti alized constant Assigment :: 공지
누군가 나를 도와 줄 수 있습니까?
감사합니다.