Class: SaasPlatform::AuditLogsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/saas_platform/audit_logs_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_account

Instance Method Details

#indexObject



7
8
9
10
11
# File 'app/controllers/saas_platform/audit_logs_controller.rb', line 7

def index
  @versions = PaperTrail::Version.where(item_type: ['SaasPlatform::User', 'SaasPlatform::Wallet', 'SaasPlatform::Order'])
                                .order(created_at: :desc)
                                .page(params[:page])
end