Sha256: 6b34284a8d0380e28e66746d0af182dc72b757e5a1f9ec45ba41d2222096675e
Contents?: true
Size: 408 Bytes
Versions: 4
Compression:
Stored size: 408 Bytes
Contents
class Message include Turbo::Broadcastable attr_reader :record_id, :content def initialize(record_id:, content:) @record_id, @content = record_id, content end def to_key [ record_id ] end def to_param "message:#{record_id}" end def to_partial_path "messages/message" end def to_s content end def model_name ActiveModel::Name.new(self.class) end end
Version data entries
4 entries across 4 versions & 1 rubygems