discourse/app/models/topic_poster.rb
Sam Saffron cac80cdc3b DEV: more send -> public_send changes
This is a work in progress commit for more send to public_send conversions

Also adds some comments for cases where we need to keep send
2019-05-07 11:58:06 +10:00

21 lines
402 B
Ruby

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