Sha256: b210820cbe67e536b59ddd31cb79f6d24a9629ad90aa3a3215f58f8a2cdfac48

Contents?: true

Size: 667 Bytes

Versions: 2

Compression:

Stored size: 667 Bytes

Contents

module Trestle
  module Auth
    class Engine < ::Rails::Engine
      initializer "trestle.sprockets" do |app|
        # Sprockets manifest
        config.assets.precompile << "trestle/auth/manifest.js"
      end if defined?(Sprockets)

      initializer "trestle.propshaft" do |app|
        app.config.assets.excluded_paths << root.join("app/assets/sprockets")
      end if defined?(Propshaft)

      config.before_initialize do
        Trestle::Engine.paths["app/helpers"].concat(paths["app/helpers"].existent)
      end

      config.to_prepare do
        Trestle::ApplicationController.send(:include, Trestle::Auth::ControllerMethods)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trestle-auth-0.5.0 lib/trestle/auth/engine.rb
trestle-auth-0.5.0.pre2 lib/trestle/auth/engine.rb