Sha256: 550c7b0db8323478b586b7c41422ce0123a0e737938b307f98e1f91de56abb8f

Contents?: true

Size: 707 Bytes

Versions: 31

Compression:

Stored size: 707 Bytes

Contents

<%= 

updated_array = @search_results.map do |k|
		if current_signed_in_resource
			if current_signed_in_resource.is_owner?(k)
				k = k.as_json({}).merge({:_type => k._type}).merge({:tags => k.tags, :masked_tags => k.masked_tags, :primary_link => k.primary_link, :secondary_links => k.secondary_links})
			else
				k = k.as_json({}).merge({:_type => k._type}).merge({:masked_tags => k.masked_tags, :primary_link => k.primary_link, :secondary_links => k.secondary_links})
			end
		else
			k = k.as_json({}).merge({:_type => k._type}).merge({:tags => k.tags, :masked_tags => k.masked_tags, :primary_link => k.primary_link, :secondary_links => k.secondary_links})
		end
end

updated_array.to_json.html_safe %>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
wordjelly-auth-1.6.0 app/views/auth/search/authenticated_user_search_with_masking.json
wordjelly-auth-1.5.9 app/views/auth/search/authenticated_user_search_with_masking.json
wordjelly-auth-1.5.8 app/views/auth/search/authenticated_user_search_with_masking.json
wordjelly-auth-1.5.7 app/views/auth/search/authenticated_user_search_with_masking.json
wordjelly-auth-1.5.6 app/views/auth/search/authenticated_user_search_with_masking.json
wordjelly-auth-1.5.5 app/views/auth/search/authenticated_user_search_with_masking.json
wordjelly-auth-1.5.4 app/views/auth/search/authenticated_user_search_with_masking.json
wordjelly-auth-1.5.3 app/views/auth/search/authenticated_user_search_with_masking.json
wordjelly-auth-1.5.2 app/views/auth/search/authenticated_user_search_with_masking.json
wordjelly-auth-1.5.1 app/views/auth/search/authenticated_user_search_with_masking.json
wordjelly-auth-1.5.0 app/views/auth/search/authenticated_user_search_with_masking.json
wordjelly-auth-1.4.9 app/views/auth/search/authenticated_user_search_with_masking.json
wordjelly-auth-1.4.8 app/views/auth/search/authenticated_user_search_with_masking.json
wordjelly-auth-1.4.7 app/views/auth/search/authenticated_user_search_with_masking.json
wordjelly-auth-1.4.6 app/views/auth/search/authenticated_user_search_with_masking.json
wordjelly-auth-1.4.5 app/views/auth/search/authenticated_user_search_with_masking.json
wordjelly-auth-1.4.4 app/views/auth/search/authenticated_user_search_with_masking.json
wordjelly-auth-1.4.3 app/views/auth/search/authenticated_user_search_with_masking.json
wordjelly-auth-1.4.2 app/views/auth/search/authenticated_user_search_with_masking.json
wordjelly-auth-1.4.0 app/views/auth/search/authenticated_user_search_with_masking.json