Module: RailsAdmin::Extensions::PaperTrail::ControllerExtension

Defined in:
lib/rails_admin/extensions/paper_trail/auditing_adapter.rb

Instance Method Summary collapse

Instance Method Details

#user_for_paper_trailObject



41
42
43
# File 'lib/rails_admin/extensions/paper_trail/auditing_adapter.rb', line 41

def user_for_paper_trail
  _current_user.try(:id) || _current_user
end