Sha256: 5cc41e7080be49ca11e32043e87190f151c350ddcb6aea17d69718ea6b11341e
Contents?: true
Size: 360 Bytes
Versions: 23
Compression:
Stored size: 360 Bytes
Contents
class AdminAssistant module Request class Destroy < Base def call @record = model_class.find @controller.params[:id] if @admin_assistant.custom_destroy @admin_assistant.custom_destroy.call @record else @record.destroy end @controller.send :render, :text => '' end end end end
Version data entries
23 entries across 23 versions & 1 rubygems