Class: RailsAuditLog::ResourcesController Private
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RailsAuditLog::ResourcesController
- Defined in:
- app/controllers/rails_audit_log/resources_controller.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #show ⇒ Object private
Instance Method Details
#show ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
4 5 6 7 8 9 10 11 12 |
# File 'app/controllers/rails_audit_log/resources_controller.rb', line 4 def show @item_type = params[:item_type] @item_id = params[:item_id] @pagy, @entries = pagy( AuditLogEntry .where(item_type: @item_type, item_id: @item_id) .order(created_at: :asc) ) end |