Sha256: e9edfb4aefaa74819935163bcc149d546768df182805376733138d183f151171

Contents?: true

Size: 522 Bytes

Versions: 8

Compression:

Stored size: 522 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_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 %>

Version data entries

8 entries across 8 versions & 1 rubygems

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