Sha256: aa24b26c069a7c129d7787d66af56a19a6b4e5976617f44e440f7865954849eb

Contents?: true

Size: 562 Bytes

Versions: 6

Compression:

Stored size: 562 Bytes

Contents

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

EffectiveForm.remote_form_payload = "<%= j render_resource_form(@resource, action: action) %>";
EffectiveForm.remote_form_flash = <%= raw flash.to_json %>;

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
effective_resources-1.2.15 app/views/application/member_action.js.erb
effective_resources-1.2.14 app/views/application/member_action.js.erb
effective_resources-1.2.12 app/views/application/member_action.js.erb
effective_resources-1.2.11 app/views/application/member_action.js.erb
effective_resources-1.2.10 app/views/application/member_action.js.erb
effective_resources-1.2.9 app/views/application/member_action.js.erb