Class: Journaled::Current

Inherits:
ActiveSupport::CurrentAttributes
  • Object
show all
Defined in:
lib/journaled/current.rb

Instance Method Summary collapse

Instance Method Details

#actorObject



16
17
18
# File 'lib/journaled/current.rb', line 16

def actor
  journaled_actor_proc&.call
end

#tagsObject



12
13
14
# File 'lib/journaled/current.rb', line 12

def tags
  attributes[:tags] ||= {}.freeze
end

#tags=(value) ⇒ Object



8
9
10
# File 'lib/journaled/current.rb', line 8

def tags=(value)
  super(value.freeze)
end