Sha256: 2994b05691b1fd20d2cad3ed3bca0e996e485178fc27917c9ff1e572f9e95b3b
Contents?: true
Size: 688 Bytes
Versions: 4
Compression:
Stored size: 688 Bytes
Contents
require 'active_admin/extensions/controller/action_status' module ActiveAdmin module Extensions module Controller module FlashMessages module Destroy include ::ActiveAdmin::Extensions::Controller::ActionStatus def destroy super() do |success, failure| if action_successful? flash.notice = I18n.t( 'active_admin.extensions.controller.flash_messages.destroy', resource: resource.class.model_name.human ) end yield(success, failure) if block_given? end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems