Sha256: 78140040dc21147cba76d94f25b6496a6a4f6ac267079e5c102715de4a080f89

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_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.12.1 lib/thredded/engine.rb
thredded-0.12.0 lib/thredded/engine.rb
thredded-0.11.1 lib/thredded/engine.rb
thredded-0.11.0 lib/thredded/engine.rb
thredded-0.10.1 lib/thredded/engine.rb
thredded-0.10.0 lib/thredded/engine.rb
thredded-0.9.4 lib/thredded/engine.rb
thredded-0.9.3 lib/thredded/engine.rb
thredded-0.9.2 lib/thredded/engine.rb
thredded-0.9.1 lib/thredded/engine.rb
thredded-0.8.4 lib/thredded/engine.rb