diff --git a/app/views/application/index.html.erb b/app/views/application/index.html.erb
index 3c6efd282..df0bee2cf 100644
--- a/app/views/application/index.html.erb
+++ b/app/views/application/index.html.erb
@@ -143,7 +143,7 @@
<% end %>
-<% if Rails.application.assets.find_asset "moment/locale/#{Rails.application.secrets.moment_locale}.js" %>
+<% if Rails.application.assets_manifest.find("moment/locale/#{Rails.application.secrets.moment_locale}.js").first %>
<%
elsif Rails.application.secrets.moment_locale != 'en'
@@ -151,7 +151,7 @@
end
%>
-<% if Rails.application.assets.find_asset "summernote/lang/summernote-#{Rails.application.secrets.summernote_locale}.js" %>
+<% if Rails.application.assets_manifest.find("summernote/lang/summernote-#{Rails.application.secrets.summernote_locale}.js").first %>
<%
elsif Rails.application.secrets.summernote_locale != 'en-US'
@@ -159,7 +159,7 @@
end
%>
-<% if Rails.application.assets.find_asset "fullcalendar/dist/lang/#{Rails.application.secrets.fullcalendar_locale}.js" %>
+<% if Rails.application.assets_manifest.find("fullcalendar/dist/lang/#{Rails.application.secrets.fullcalendar_locale}.js").first %>
<%
elsif Rails.application.secrets.fullcalendar_locale != 'en'