Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Add base assets to precompilation #3

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/views/fields/json/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ This partial renders an JSON database into structured form

%>
<% content_for :javascript, flush: true do %>
<%= javascript_include_tag '/assets/administrate-field-json.js' %>
<%= stylesheet_link_tag '/assets/administrate-field-json.css' %>
<%= javascript_include_tag 'administrate-field-json.js' %>
<%= stylesheet_link_tag 'administrate-field-json.css' %>
<% end %>


Expand Down
2 changes: 1 addition & 1 deletion lib/administrate/field/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class Engine < ::Rails::Engine
Rails.application.config.assets.paths << engine_root.join("app", "assets", "javascripts", "administrate-field-json")
Rails.application.config.assets.paths << engine_root.join("app", "assets", "stylesheets", "administrate-field-json")
Rails.application.config.assets.paths << engine_root.join("vendor", "assets", "images")
Rails.application.config.assets.precompile += ['administrate-field-json.js','administrate-field-json.css']
end

end
end
end
Expand Down