mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 03:30:10 +08:00
topic_poster.rb: Fix formatting of the attributes return value
This commit is contained in:
parent
7b6f54a3db
commit
3f27ffca9f
@ -4,10 +4,12 @@ class TopicPoster < OpenStruct
|
||||
attr_accessor :user, :description, :extras, :id
|
||||
|
||||
def attributes
|
||||
{'user' => user,
|
||||
'description' => description,
|
||||
'extras' => extras,
|
||||
'id' => id}
|
||||
{
|
||||
'user' => user,
|
||||
'description' => description,
|
||||
'extras' => extras,
|
||||
'id' => id
|
||||
}
|
||||
end
|
||||
|
||||
# TODO: Remove when old list is removed
|
||||
|
Loading…
x
Reference in New Issue
Block a user