Skip to content

Commit

Permalink
Make ActiveStorage/ActionText detection less likely to cause false po…
Browse files Browse the repository at this point in the history
…sitives

Closes #3659
  • Loading branch information
mshibuya committed Jan 7, 2024
1 parent 5c21878 commit 073b809
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/rails_admin/application.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
//= require 'rails_admin/ui'
//= require 'rails_admin/custom/ui'

<% if defined?(ActiveStorage) %>
<% if defined?(ActiveStorage::Engine) %>
//= require activestorage
<% end %>
<% if defined?(ActionText) && Rails.gem_version >= Gem::Version.new('7.0') %>
<% if defined?(ActionText::Engine) && Rails.gem_version >= Gem::Version.new('7.0') %>
//= require trix
//= require actiontext
<% end %>
2 changes: 1 addition & 1 deletion app/assets/stylesheets/rails_admin/application.scss.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
@import "rails_admin/styles/base/theming";
@import "rails_admin/custom/theming";

<% if defined?(ActionText) && Rails.gem_version >= Gem::Version.new('7.0') %>
<% if defined?(ActionText::Engine) && Rails.gem_version >= Gem::Version.new('7.0') %>
@import "trix";
<% end %>

0 comments on commit 073b809

Please sign in to comment.