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.6.6 app/views/application/create.js.erb
effective_resources-1.6.5 app/views/application/create.js.erb
effective_resources-1.6.4 app/views/application/create.js.erb
effective_resources-1.6.3 app/views/application/create.js.erb
effective_resources-1.6.2 app/views/application/create.js.erb
effective_resources-1.6.1 app/views/application/create.js.erb
effective_resources-1.6.0 app/views/application/create.js.erb
effective_resources-1.5.5 app/views/application/create.js.erb
effective_resources-1.5.4 app/views/application/create.js.erb
effective_resources-1.5.3 app/views/application/create.js.erb
effective_resources-1.5.2 app/views/application/create.js.erb
effective_resources-1.5.1 app/views/application/create.js.erb
effective_resources-1.5.0 app/views/application/create.js.erb
effective_resources-1.4.13 app/views/application/create.js.erb
effective_resources-1.4.12 app/views/application/create.js.erb
effective_resources-1.4.11 app/views/application/create.js.erb
effective_resources-1.4.10 app/views/application/create.js.erb
effective_resources-1.4.9 app/views/application/create.js.erb
effective_resources-1.4.8 app/views/application/create.js.erb
effective_resources-1.4.7 app/views/application/create.js.erb