Sha256: f25844a92fbc6a9953be661a3badbbe990b137ad87b20c0516644759d92dd4b6
Contents?: true
Size: 667 Bytes
Versions: 61
Compression:
Stored size: 667 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin # Controller that shows a simple dashboard. # class LogsController < Decidim::Admin::ApplicationController helper_method :logs def index enforce_permission_to :read, :admin_log end private def logs @logs ||= Decidim::ActionLog .where(organization: current_organization) .includes(:participatory_space, :user, :resource, :component, :version) .for_admin .order(created_at: :desc) .page(params[:page]) .per(20) end end end end
Version data entries
61 entries across 61 versions & 1 rubygems