File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -15,4 +15,6 @@ gemspec
1515gem "activeadmin"
1616gem "mimemagic" , github : "mimemagicrb/mimemagic" , ref : "01f92d86d15d85cfd0f20dabd025dcbd36a8a60f"
1717
18+ gem "sassc" , require : ENV [ "SPROCKETS" ] == "true"
19+ gem "sassc-rails" , require : ENV [ "SPROCKETS" ] == "true"
1820gem "webpacker" , "~> 5.0" , require : ENV [ "SPROCKETS" ] != "true"
Original file line number Diff line number Diff line change 11module ActiveAdminAddons
22 module Rails
33 class Engine < ::Rails ::Engine
4+ if ENV [ "SPROCKETS" ] == "true"
5+ require 'sassc'
6+ require 'sassc-rails'
7+ end
48 require "xdan-datetimepicker-rails"
59 require "require_all"
610 require "active_material"
@@ -9,7 +13,7 @@ class Engine < ::Rails::Engine
913 require_rel "support"
1014 require_rel "addons"
1115 require_rel "active_admin_config"
12- app . config . assets . precompile += %w( fileicons/*.png switches/switch_*.png
16+ app . config . assets . precompile += %w( select.scss fileicons/*.png switches/switch_*.png
1317 material/icons *.svg )
1418 end
1519 end
You can’t perform that action at this time.
0 commit comments