Sha256: abdb7ada11074a0c2403e30e3d0486b069135861db1c8c31b977d4519b7f45ec
Contents?: true
Size: 638 Bytes
Versions: 11
Compression:
Stored size: 638 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) .order(created_at: :desc) .includes(:participatory_space, :user, :resource, :component, :version) .page(params[:page]) .per(20) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems