This repository has been archived on 2025-05-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
discourse/app/models/topic_poster.rb

19 lines
339 B
Ruby

class TopicPoster < OpenStruct
include ActiveModel::Serialization
attr_accessor :user, :description, :extras, :id
def attributes
{
'user' => user,
'description' => description,
'extras' => extras,
'id' => id
}
end
# TODO: Remove when old list is removed
def [](attr)
send(attr)
end
end