Sha256: 6c3f68fb27dfcb4301c3087bf263bd02340bdfe324fe012c78a90d39c9dde841
Contents?: true
Size: 897 Bytes
Versions: 1
Compression:
Stored size: 897 Bytes
Contents
module Toshokan module Admin class ToshokanHistoryIndex < 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 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
toshokan-0.1.1 | lib/toshokan/admin/history_index.rb |