Sha256: f7b7171500f673f9f53fb98e06d431a5571563dc90392bf22d136179317a8e1d

Contents?: true

Size: 591 Bytes

Versions: 65

Compression:

Stored size: 591 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.8.10 app/views/application/create.js.erb
effective_resources-1.8.9 app/views/application/create.js.erb
effective_resources-1.8.8 app/views/application/create.js.erb
effective_resources-1.8.7 app/views/application/create.js.erb
effective_resources-1.8.6 app/views/application/create.js.erb
effective_resources-1.8.5 app/views/application/create.js.erb
effective_resources-1.8.4 app/views/application/create.js.erb
effective_resources-1.8.3 app/views/application/create.js.erb
effective_resources-1.8.2 app/views/application/create.js.erb
effective_resources-1.8.1 app/views/application/create.js.erb
effective_resources-1.8.0 app/views/application/create.js.erb
effective_resources-1.7.8 app/views/application/create.js.erb
effective_resources-1.7.7 app/views/application/create.js.erb
effective_resources-1.7.6 app/views/application/create.js.erb
effective_resources-1.7.5 app/views/application/create.js.erb
effective_resources-1.7.4 app/views/application/create.js.erb
effective_resources-1.7.3 app/views/application/create.js.erb
effective_resources-1.7.2 app/views/application/create.js.erb
effective_resources-1.7.1 app/views/application/create.js.erb
effective_resources-1.7.0 app/views/application/create.js.erb