Sha256: 6482875bd01afaec0b89be0faac3a20530b8c6d8c791089ad13955cb5826f60a
Contents?: true
Size: 1.26 KB
Versions: 6
Compression:
Stored size: 1.26 KB
Contents
module Gaku module Core class Engine < ::Rails::Engine isolate_namespace Gaku engine_name 'gaku' config.autoload_paths += %W(#{config.root}/lib) config.to_prepare do GakuController.helper(GakuHelper) end def self.activate end config.to_prepare &method(:activate).to_proc config.after_initialize do end # We need to reload the routes here due to how Gaku sets them up. # The different facets of Gaku append/prepend routes to Core # *after* Core has been loaded. # # So we wait until after initialization is complete to do one final reload. # This then makes the appended/prepended routes available to the application. 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/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
6 entries across 6 versions & 2 rubygems