Sha256: 150a333b726fe78f9ce3ed860913815815c5f8c7509e8161e0c8f3ebee169c55
Contents?: true
Size: 1 KB
Versions: 5
Compression:
Stored size: 1 KB
Contents
module RailsAdmin module Config module Actions class HistoryShow < RailsAdmin::Config::Actions::Base RailsAdmin::Config::Actions.register(self) register_instance_option :authorization_key do :history end register_instance_option :member do true end register_instance_option :route_fragment do 'history' end register_instance_option :controller do Proc.new do @general = false @history = @auditing_adapter && @auditing_adapter.listing_for_object(@abstract_model, @object, params[:query], params[:sort], params[:sort_reverse], params[:all], params[:page]) || [] render @action.template_name, :layout => request.xhr? ? false : 'rails_admin/application' 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
5 entries across 5 versions & 2 rubygems