Sha256: 3b6195db26103d487d87e689a6878b780ed4dd5562cc680acd4eb2064deb0aa2

Contents?: true

Size: 590 Bytes

Versions: 65

Compression:

Stored size: 590 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) %>";
EffectiveForm.remote_form_commit = "<%= params[:commit] %>";
EffectiveForm.remote_form_flash = <%= raw flash.to_json %>;

<% if @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

65 entries across 65 versions & 1 rubygems

Version Path
effective_resources-1.3.3 app/views/application/update.js.erb
effective_resources-1.3.2 app/views/application/update.js.erb
effective_resources-1.3.1 app/views/application/update.js.erb
effective_resources-1.3.0 app/views/application/update.js.erb
effective_resources-1.2.16 app/views/application/update.js.erb