Method: Audited::Sweeper#current_user
- Defined in:
- lib/audited_logfile.rb
#current_user ⇒ Object
48 49 50 51 52 53 54 55 56 |
# File 'lib/audited_logfile.rb', line 48 def current_user if Audited.current_user_method.is_a? Array Audited.current_user_method.map do |method| controller.send(method) if controller.respond_to?(method, true) end.compact.first else controller.send(Audited.current_user_method) if controller.respond_to?(Audited.current_user_method, true) end end |