Module: Ixtlan::Audit::CubaPlugin
- Defined in:
- lib/ixtlan/audit/cuba_plugin.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#audit(obj, options = {}) ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/ixtlan/audit/cuba_plugin.rb', line 26 def audit( obj, = {} ) if [ :audit ] != false username = [ :username ] username ||= current_user_name if respond_to?( :current_user_name ) user = respond_to?( :current_user ) ? current_user : nil audit_manager.push( username, req.request_method, env['SCRIPT_NAME'], obj, user ) end obj end |