suite
This commit is contained in:
parent
6a9eb1ce28
commit
64ce04995d
@ -26,7 +26,7 @@ class ForumUser < ActiveRecord::Base
|
|||||||
has_many :messages, :class_name => "ForumMessage"
|
has_many :messages, :class_name => "ForumMessage"
|
||||||
has_many :topics, :class_name => "ForumTopic"
|
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
|
belongs_to :sheet
|
||||||
|
|
||||||
before_create { generate_token(:auth_token) }
|
before_create { generate_token(:auth_token) }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user