This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/models/topic_poster.rb
2013-02-07 16:45:24 +01:00

19 lines
325 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