Class: ActionReporter::PaperTrailReporter
- Inherits:
-
Base
- Object
- Base
- ActionReporter::PaperTrailReporter
show all
- Defined in:
- lib/action_reporter/paper_trail_reporter.rb
Instance Method Summary
collapse
Methods inherited from Base
class_accessor, #resolve_check_in_id, #transform_context
Instance Method Details
#context(args) ⇒ Object
8
9
|
# File 'lib/action_reporter/paper_trail_reporter.rb', line 8
def context(args)
end
|
#current_user ⇒ Object
15
16
17
|
# File 'lib/action_reporter/paper_trail_reporter.rb', line 15
def current_user
PaperTrail.request.whodunnit
end
|
#current_user=(user) ⇒ Object
19
20
21
|
# File 'lib/action_reporter/paper_trail_reporter.rb', line 19
def current_user=(user)
PaperTrail.request.whodunnit = user
end
|
#notify ⇒ Object
5
6
|
# File 'lib/action_reporter/paper_trail_reporter.rb', line 5
def notify(*)
end
|
#reset_context ⇒ Object
11
12
13
|
# File 'lib/action_reporter/paper_trail_reporter.rb', line 11
def reset_context
PaperTrail.request.whodunnit = nil
end
|