This commit is contained in:
Nicolas Bally 2021-05-15 10:14:52 +02:00
parent 6a9eb1ce28
commit 64ce04995d

View File

@ -26,7 +26,7 @@ class ForumUser < ActiveRecord::Base
has_many :messages, :class_name => "ForumMessage"
has_many :topics, :class_name => "ForumTopic"
has_many :images, :class_name => "ForumUserImage", -> {order "created_at DESC"}
has_many :images, -> {order "created_at DESC"}, :class_name => "ForumUserImage"
belongs_to :sheet
before_create { generate_token(:auth_token) }