Sha256: b5b09fe2c46688405063adce6986f4c7fe1f0bbc711d984434aafa31945ff1b2

Contents?: true

Size: 817 Bytes

Versions: 16

Compression:

Stored size: 817 Bytes

Contents

module Gaku
  module Frontend
    class Engine < ::Rails::Engine
      engine_name 'gaku_frontend'

      config.autoload_paths += %W(#{config.root}/lib)

      config.to_prepare do
        Gaku::GakuController.helper(Gaku::FrontendHelper)
      end

      config.after_initialize do
        Rails.application.routes_reloader.reload!
      end

      # sets the manifests / assets to be precompiled, even when initialize_on_precompile is false
      initializer 'gaku.assets.precompile', group: :all do |app|
        app.config.assets.precompile += %w(
          gaku/frontend/all*
        )
      end

      # filter sensitive information during logging
      initializer 'gaku.params.filter' do |app|
        app.config.filter_parameters += [:password, :password_confirmation, :number]
      end

    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
gaku_frontend-0.3.0 lib/gaku/frontend/engine.rb
gaku_frontend-0.3.0.pre.4 lib/gaku/frontend/engine.rb
gaku_frontend-0.3.0.pre.3 lib/gaku/frontend/engine.rb
gaku_frontend-0.3.0.pre.2 lib/gaku/frontend/engine.rb
gaku_frontend-0.3.0.pre.1 lib/gaku/frontend/engine.rb
gaku_frontend-0.3.0.pre.0 lib/gaku/frontend/engine.rb
gaku-0.2.4 frontend/lib/gaku/frontend/engine.rb
gaku_frontend-0.2.4 lib/gaku/frontend/engine.rb
gaku-0.2.3 frontend/lib/gaku/frontend/engine.rb
gaku_frontend-0.2.3 lib/gaku/frontend/engine.rb
gaku-0.2.2 frontend/lib/gaku/frontend/engine.rb
gaku_frontend-0.2.2 lib/gaku/frontend/engine.rb
gaku-0.2.1 frontend/lib/gaku/frontend/engine.rb
gaku_frontend-0.2.1 lib/gaku/frontend/engine.rb
gaku-0.2.0 frontend/lib/gaku/frontend/engine.rb
gaku_frontend-0.2.0 lib/gaku/frontend/engine.rb