diff --git a/app/javascript/application.js b/app/javascript/application.js index 15dc6ae..6d1e000 100644 --- a/app/javascript/application.js +++ b/app/javascript/application.js @@ -6,3 +6,4 @@ import 'jquery-validation' import '@activeadmin/activeadmin' import './custom/active_admin_custom' +import './custom/campaign-form' diff --git a/public/campaign-form.js b/app/javascript/custom/campaign-form.js similarity index 100% rename from public/campaign-form.js rename to app/javascript/custom/campaign-form.js diff --git a/app/views/admin/forms/_form.html.erb b/app/views/admin/forms/_form.html.erb index bd6163a..60032e3 100644 --- a/app/views/admin/forms/_form.html.erb +++ b/app/views/admin/forms/_form.html.erb @@ -33,5 +33,4 @@ Terms of Service apply. - <% if form.use_recaptcha %><% end %> diff --git a/config/routes.rb b/config/routes.rb index b5e6111..b385488 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -21,6 +21,6 @@ get "monitors/lb" get "/login/new", to: "login#new" - get "/assets/campaign-form.js", to: redirect("/campaign-form.js") - get "/packs/campaign.js", to: redirect("/campaign-form.js") + get "/assets/campaign-form.js", to: redirect("/assets/custom/campaign-form.js") + get "/packs/campaign.js", to: redirect("/assets/custom/campaign-form.js") end