Module: Redmine::Acts::Journalized::Callbacks
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/acts_as_journalized/callbacks.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#init_journal(user = User.current, notes = '') ⇒ Object
7 8 9 |
# File 'lib/acts_as_journalized/callbacks.rb', line 7 def init_journal(user = User.current, notes = '') @journal ||= send(self.[:name]).build(user: user, notes: notes) end |