# File lib/temple/mixins/options.rb, line 56 def thread_options Thread.current[thread_options_key] end
# File lib/temple/mixins/options.rb, line 48 def with_options(options) old_options = thread_options Thread.current[thread_options_key] = ImmutableHash.new(options, thread_options) yield ensure Thread.current[thread_options_key] = old_options end
# File lib/temple/mixins/options.rb, line 62 def thread_options_key @thread_options_key ||= "#{self.name}-thread-options".to_sym end