Sha256: 71bc6b58d954dd7861de5665b83820933bf0c0314265fd76422eb6bcacfdcdfa

Contents?: true

Size: 653 Bytes

Versions: 11

Compression:

Stored size: 653 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!
      if Thredded.user_class
        Thredded.user_class.send(:include, Thredded::UserExtender)
      end
    end

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

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
thredded-0.15.4 lib/thredded/engine.rb
thredded-0.15.3 lib/thredded/engine.rb
thredded-0.15.2 lib/thredded/engine.rb
thredded-0.15.1 lib/thredded/engine.rb
threddedDANIEL-0.14.5 lib/thredded/engine.rb
thredded-0.14.4 lib/thredded/engine.rb
thredded-0.14.3 lib/thredded/engine.rb
thredded-0.14.2 lib/thredded/engine.rb
thredded-0.14.1 lib/thredded/engine.rb
thredded-0.14.0 lib/thredded/engine.rb
thredded-0.13.8 lib/thredded/engine.rb