Class: ActionReporter::AuditedReporter
- Inherits:
-
Base
- Object
- Base
- ActionReporter::AuditedReporter
show all
- Defined in:
- lib/action_reporter/audited_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
10
|
# File 'lib/action_reporter/audited_reporter.rb', line 8
def context(args)
Audited.context = Audited.context.merge(args) if Audited.respond_to?(:context=)
end
|
#current_remote_addr ⇒ Object
35
36
37
|
# File 'lib/action_reporter/audited_reporter.rb', line 35
def current_remote_addr
Audited.store[:current_remote_address]
end
|
#current_remote_addr=(remote_addr) ⇒ Object
39
40
41
|
# File 'lib/action_reporter/audited_reporter.rb', line 39
def current_remote_addr=(remote_addr)
Audited.store[:current_remote_address] = remote_addr
end
|
#current_request_uuid ⇒ Object
27
28
29
|
# File 'lib/action_reporter/audited_reporter.rb', line 27
def current_request_uuid
Audited.store[:current_request_uuid]
end
|
#current_request_uuid=(request_uuid) ⇒ Object
31
32
33
|
# File 'lib/action_reporter/audited_reporter.rb', line 31
def current_request_uuid=(request_uuid)
Audited.store[:current_request_uuid] = request_uuid
end
|
#current_user ⇒ Object
19
20
21
|
# File 'lib/action_reporter/audited_reporter.rb', line 19
def current_user
Audited.store[:audited_user]
end
|
#current_user=(user) ⇒ Object
23
24
25
|
# File 'lib/action_reporter/audited_reporter.rb', line 23
def current_user=(user)
Audited.store[:audited_user] = user
end
|
#notify ⇒ Object
5
6
|
# File 'lib/action_reporter/audited_reporter.rb', line 5
def notify(*)
end
|
#reset_context ⇒ Object
12
13
14
15
16
17
|
# File 'lib/action_reporter/audited_reporter.rb', line 12
def reset_context
Audited.store.delete(:current_remote_address)
Audited.store.delete(:current_request_uuid)
Audited.store.delete(:audited_user)
Audited.context = {} if Audited.respond_to?(:context=)
end
|