Sha256: 15cfad5fd93e214c8e64454cc37c82b3b071b52fdecfe1895e128ea014e3fe07
Contents?: true
Size: 288 Bytes
Versions: 2
Compression:
Stored size: 288 Bytes
Contents
module RailsLiveDashboard class Request < Entry attribute :content, Types::RequestContent.new after_create_commit lambda { broadcast_prepend_later_to 'request_list', target: 'requests' } def turbo_stream? content.format == 'turbo_stream' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_live_dashboard-0.2.0 | app/models/rails_live_dashboard/request.rb |
rails_live_dashboard-0.1.2 | app/models/rails_live_dashboard/request.rb |