lib/homeland/site/engine.rb in homeland-site-0.3.2 vs lib/homeland/site/engine.rb in homeland-site-0.3.3

- old
+ new

@@ -2,9 +2,13 @@ module Homeland::Site class Engine < ::Rails::Engine isolate_namespace Homeland::Site + initializer 'homeland.site.assets.precompile', group: :all do |app| + app.config.assets.precompile += %w[homeland/site/application.css homeland/site/application.js] + end + initializer "homeland.site.init" do |app| next unless (defined? Setting) && Setting.has_module?(:site) Homeland.register_plugin do |plugin| plugin.name = Homeland::Site::NAME plugin.display_name = "酷站"