Sha256: 9b3a73c7280ce0cf5c0c1b8c48927e77ddaf5f12236999ae9c03936730a7f721

Contents?: true

Size: 635 Bytes

Versions: 5

Compression:

Stored size: 635 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, safe: true) %>";
EffectiveForm.remote_form_commit = "<%= params[:commit] %>";
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

5 entries across 5 versions & 1 rubygems

Version Path
effective_resources-1.8.10 app/views/application/member_action.js.erb
effective_resources-1.8.9 app/views/application/member_action.js.erb
effective_resources-1.8.8 app/views/application/member_action.js.erb
effective_resources-1.8.7 app/views/application/member_action.js.erb
effective_resources-1.8.6 app/views/application/member_action.js.erb