diff --git a/spec/example_app/app/assets/config/manifest.js b/spec/example_app/app/assets/config/manifest.js index 4e5e2546ff..8f7a648f42 100644 --- a/spec/example_app/app/assets/config/manifest.js +++ b/spec/example_app/app/assets/config/manifest.js @@ -1,5 +1,6 @@ //= link administrate-internal/docs.css //= link admin.css +//= link admin.js //= link_tree ../images //= link_tree ../builds diff --git a/spec/example_app/app/assets/javascripts/admin.js b/spec/example_app/app/assets/javascripts/admin.js new file mode 100644 index 0000000000..f1d8555c25 --- /dev/null +++ b/spec/example_app/app/assets/javascripts/admin.js @@ -0,0 +1 @@ +alert("Annoying alert!"); diff --git a/spec/example_app/config/initializers/administrate.rb b/spec/example_app/config/initializers/administrate.rb index 3daa27acce..b54bffa741 100644 --- a/spec/example_app/config/initializers/administrate.rb +++ b/spec/example_app/config/initializers/administrate.rb @@ -1 +1,2 @@ Administrate::Engine.add_stylesheet("admin") +Administrate::Engine.add_javascript("admin")