Sha256: 7af5d3f7622a774bfd3552ed83c0a7db8b1b697b6c8afbea78ceac5e4a42a7b1

Contents?: true

Size: 654 Bytes

Versions: 11

Compression:

Stored size: 654 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_girl, 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 & 1 rubygems

Version Path
thredded-0.13.7 lib/thredded/engine.rb
thredded-0.13.6 lib/thredded/engine.rb
thredded-0.13.5 lib/thredded/engine.rb
thredded-0.13.4 lib/thredded/engine.rb
thredded-0.13.3 lib/thredded/engine.rb
thredded-0.13.2 lib/thredded/engine.rb
thredded-0.13.1 lib/thredded/engine.rb
thredded-0.13.0 lib/thredded/engine.rb
thredded-0.12.4 lib/thredded/engine.rb
thredded-0.12.3 lib/thredded/engine.rb
thredded-0.12.2 lib/thredded/engine.rb