Sha256: 5907ab5c463a9f29435df2481c64958d6973dc0a69ae481c11db793da9d69025
Contents?: true
Size: 666 Bytes
Versions: 9
Compression:
Stored size: 666 Bytes
Contents
# frozen_string_literal: true module Plutonium module UI module Page class Index < Base private def page_title super || current_definition.index_page_title || resource_name_plural(resource_class) end def page_description super || current_definition.index_page_description end def page_actions super || current_definition.defined_actions.values.select { |a| a.resource_action? && a.permitted_by?(current_policy) } end def render_default_content render "resource_table" end def page_type = :index_page end end end end
Version data entries
9 entries across 9 versions & 1 rubygems