Sha256: 130e9ac9bca8ae9fc83849b5acfb9b9dcda66f816e206749cd03ad170623c680
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 KB
Contents
require "boilerman/engine" require "boilerman/actions" require "boilerman/checks" module Boilerman def self.controllers ActionController::Metal.descendants.reject do |controller| controller.parent == Boilerman || !controller.respond_to?(:_process_action_callbacks) end end def self.eager_load_rails_paths Rails.configuration.eager_load_paths.each do |path| Dir[path + "/*.rb"].each do |file| require file end end end # This lets me tap into Rails initialization events. before_initialize is a # hook after configuration is completed but right before the applicaiton gets # initialized. # # See http://edgeguides.rubyonrails.org/configuring.html#initialization-events class InitializationHooks < Rails::Railtie config.before_initialize do |app| if Rails.env.development? # Force eager loading of namespaces so that Boilerman has immeddiate # access to all controllers and models in development enviornments. # # Note, this will not propogate code changes and will require server # restarts if you change code. app.config.eager_load = true #app.config.cache_classes = true end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
boilerman-0.1.2 | lib/boilerman.rb |
boilerman-0.1.1 | lib/boilerman.rb |