Sha256: 1715f0ed2b734e71665ecb76db3ad98f376844dc873af11537f080468a7e3ba2
Contents?: true
Size: 959 Bytes
Versions: 24
Compression:
Stored size: 959 Bytes
Contents
module RailsAdmin module Config module Actions class HistoryIndex < RailsAdmin::Config::Actions::Base RailsAdmin::Config::Actions.register(self) register_instance_option :authorization_key do :history end register_instance_option :collection do true end register_instance_option :route_fragment do 'history' end register_instance_option :controller do Proc.new do @general = true @history = @auditing_adapter && @auditing_adapter.listing_for_model(@abstract_model, params[:query], params[:sort], params[:sort_reverse], params[:all], params[:page]) || [] render @action.template_name end end register_instance_option :template_name do :history end register_instance_option :link_icon do 'icon-book' end end end end end
Version data entries
24 entries across 24 versions & 3 rubygems