Sha256: a499102efaf5afe074f0600dca45b8db8be4b5f6dcf1394ccc8d7e0cfb1ee085

Contents?: true

Size: 174 Bytes

Versions: 4

Compression:

Stored size: 174 Bytes

Contents

module ActiveAdminAssociations
  module RedirectDestroyActions
    def destroy
      destroy!{ request.headers["Referer"].presence || admin_dashboard_url }
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
activeadmin_associations-0.1.3 lib/active_admin_associations/redirect_destroy_actions.rb
aa_associations-0.1.2 lib/active_admin_associations/redirect_destroy_actions.rb
aa_associations-0.1.1 lib/active_admin_associations/redirect_destroy_actions.rb
aa_associations-0.1.0 lib/active_admin_associations/redirect_destroy_actions.rb