Sha256: 8fd51f49e7bb467284b7fe08f43c598356e3df77afb75205ed2aacfb35f95a24
Contents?: true
Size: 685 Bytes
Versions: 4
Compression:
Stored size: 685 Bytes
Contents
require 'active_admin/extensions/controller/action_status' module ActiveAdmin module Extensions module Controller module FlashMessages module Create include ::ActiveAdmin::Extensions::Controller::ActionStatus def create super() do |success, failure| if action_successful? flash.notice = I18n.t( 'active_admin.extensions.controller.flash_messages.create', 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