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


35
36
37
# File 'lib/rails_admin/extensions/paper_trail/auditing_adapter.rb', line 35

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