Sha256: b1d0dea9b293086724b13d1626bacfee4d5a06c549c4c0773129848e79884979

Contents?: true

Size: 513 Bytes

Versions: 8

Compression:

Stored size: 513 Bytes

Contents

<% resource = (@_effective_resource || Effective::Resource.new(controller_path)) %>
<% @resource = instance_variable_get('@' + resource.name) if resource.name %>

EffectiveForm.remote_form_payload = '';
EffectiveForm.remote_form_flash = <%= raw flash.to_json %>;

<% if @resource.respond_to?(:refresh_datatables) && @resource.refresh_datatables.present? %>
  EffectiveForm.remote_form_refresh_datatables = <%= raw @resource.refresh_datatables.uniq.compact.map(&:to_s) %>;
<% end %>

EffectiveForm.finishDelete();

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
effective_resources-1.1.5 app/views/application/destroy.js.erb
effective_resources-1.1.4 app/views/application/destroy.js.erb
effective_resources-1.1.3 app/views/application/destroy.js.erb
effective_resources-1.1.2 app/views/application/destroy.js.erb
effective_resources-1.1.1 app/views/application/destroy.js.erb
effective_resources-1.1.0 app/views/application/destroy.js.erb
effective_resources-1.0.19 app/views/application/destroy.js.erb
effective_resources-1.0.18 app/views/application/destroy.js.erb