mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 23:20:33 +08:00
Merge pull request #544 from kid0m4n/fix-formatting-1
topic_poster.rb: Fix formatting of the attributes return value
This commit is contained in:
commit
6eba6ad520
|
@ -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…
Reference in New Issue
Block a user