Sha256: 42c8bd334764c955d4866ba29ca4db9ad82c61ae8ef33bdc0d7b344f67750552
Contents?: true
Size: 961 Bytes
Versions: 2
Compression:
Stored size: 961 Bytes
Contents
<% resource = (@_effective_resource || Effective::Resource.new(controller_path)) %> <% @resource = instance_variable_get('@' + resource.name) if resource.name %> <% if html_template.present? %> EffectiveForm.remote_form_payload = "<%= j(render_resource_partial(@resource, action: action)) %>"; <% else %> EffectiveForm.remote_form_payload = "<%= j(render_resource_form(@resource, action: action, safe: true).presence || render_resource_partial(@resource)) %>"; <% end %> EffectiveForm.remote_form_commit = "<%= params[:commit] %>"; EffectiveForm.remote_form_flash = <%= raw flash.to_json %>; <% if !request.get? %> EffectiveForm.remote_form_redirect = "<%= local_assigns[:remote_form_redirect] %>"; <% end %> <% 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
effective_resources-2.9.2 | app/views/application/member_action.js.erb |
effective_resources-2.9.1 | app/views/application/member_action.js.erb |