Sha256: 3541fb1713cee4321bd2fb4c17aeade2d0f97ddb0984b8f331dcb33513788ef0
Contents?: true
Size: 536 Bytes
Versions: 3
Compression:
Stored size: 536 Bytes
Contents
<% @search_results.each do |result| _partial = "auth/search/search_result.html.erb" search_path = Auth::OmniAuth::Path.model_to_path(result.class) + "/_search_result.html.erb" if lookup_context.find_all(search_path).any? puts "found in lookup context." _partial = search_path end _partial = _partial.gsub(/\/_search/,"/search") puts "partial is: #{_partial}" %> $("#navbar_search_results").append("<%= escape_javascript render :partial => _partial, locals: {result: result, resource: lookup_resource} %>") <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems