Sha256: ada924c1a727d630f32067921f77443fca44ae94c1cb58fe2d04c5dbe5188af3

Contents?: true

Size: 600 Bytes

Versions: 4

Compression:

Stored size: 600 Bytes

Contents

# frozen_string_literal: true

module Thredded
  class Engine < ::Rails::Engine
    isolate_namespace Thredded

    config.generators do |g|
      g.test_framework :rspec, fixture: true
      g.fixture_replacement :factory_bot, dir: 'spec/factories'
      g.helper false
    end

    config.to_prepare do
      Thredded::AllViewHooks.reset_instance!
      Thredded.user_class.send(:include, Thredded::UserExtender) if Thredded.user_class
    end

    initializer 'thredded.setup_assets' do
      Thredded::Engine.config.assets.precompile += %w[
        thredded_manifest.js
      ]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thredded-1.0.0 lib/thredded/engine.rb
thredded-0.16.16 lib/thredded/engine.rb
thredded-0.16.15 lib/thredded/engine.rb
thredded-0.16.14 lib/thredded/engine.rb