Sha256: 8f94f976bbbb910be66ebf48207a8399d5deb33808ea60e7bed203e9c8eaa286
Contents?: true
Size: 535 Bytes
Versions: 3
Compression:
Stored size: 535 Bytes
Contents
class Hq::AuditsController < Hq::ApplicationController add_breadcrumb I18n.t('activerecord.models.audits'), :hq_audits_path def index @search = Audit.includes(:user).reorder('id DESC').search(params[:q]) @audits = @search.result(distinct: true).paginate(page: params[:page]) @auditable_types = Audited::Adapters::ActiveRecord::Audit.select('auditable_type').group('auditable_type').reorder('') end def show @audit = Audit.find(params[:id]) add_breadcrumb @audit.id, hq_audit_path(id: @audit) end end
Version data entries
3 entries across 3 versions & 1 rubygems