lib/spina/admin/conferences/blog/engine.rb in spina-admin-conferences-blog-0.1.4 vs lib/spina/admin/conferences/blog/engine.rb in spina-admin-conferences-blog-0.2.0
- old
+ new
@@ -1,17 +1,20 @@
# frozen_string_literal: true
module Spina
module Admin::Conferences::Blog
- # Spina::Blog::Engine
+ # Spina::Admin::Conferences::Blog::Engine
class Engine < ::Rails::Engine
isolate_namespace Spina::Admin::Conferences::Blog
config.before_initialize do
::Spina::Plugin.register do |plugin|
plugin.name = 'conferences-blog'
plugin.namespace = 'conferences/blog'
end
+
+ # Add views for purging Tailwind classes
+ ::Spina.config.tailwind_content.concat Spina::Admin::Conferences::Blog::Engine.root.glob("app/views/**/*.*")
end
config.generators do |g|
g.test_framework :rspec, fixture: false
g.fixture_replacement :factory_bot, dir: 'spec/factories'