File: //usr/local/rvm/gems/default/doc/activesupport-6.1.4.1/ri/ActiveSupport/CurrentAttributes/set-i.ri
U:RDoc::AnyMethod[iI"set:ETI")ActiveSupport::CurrentAttributes#set;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"fExpose one or more attributes within a block. Old values are returned after the block concludes. ;TI"iExample demonstrating the common use of needing to set Current attributes outside the request-cycle:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"1class Chat::PublicationJob < ApplicationJob
;TI"5 def perform(attributes, room_number, creator)
;TI") Current.set(person: creator) do
;TI"U Chat::Publisher.publish(attributes: attributes, room_number: room_number)
;TI"
end
;TI" end
;TI"end;T:@format0:
@fileI"-lib/active_support/current_attributes.rb;T:0@omit_headings_from_table_of_contents_below00I"