6 lines
280 B
Plaintext
6 lines
280 B
Plaintext
var to_render = '';
|
|
<% if value %>
|
|
to_render = "<%= escape_javascript(render(:partial => partial, :object => value, :locals => locals)) %>"
|
|
<% elsif values %>
|
|
to_render = "<%= escape_javascript(render(:partial => partial, :collection => values, :locals => locals)) %>"
|
|
<% end %> |