Sha256: 17f94419ea5961bd42b7a2fb58b2c853f8861d540a89867227f76214a4ff6483
Contents?: true
Size: 941 Bytes
Versions: 1
Compression:
Stored size: 941 Bytes
Contents
require "rails/railtie" require "trailblazer/loader" require "trailblazer/rails/railtie/extend_application_controller" require "trailblazer/rails/railtie/loader" module Trailblazer class Railtie < ::Rails::Railtie config.trailblazer = ActiveSupport::OrderedOptions.new ## Accept also an Array of controllers config.trailblazer.application_controller ||= "ActionController::Base" config.trailblazer.enable_loader ||= true config.trailblazer.enable_tracing ||= false include Loader include ExtendApplicationController private def reloader_class # Rails 5.0.0.rc1 says: # DEPRECATION WARNING: to_prepare is deprecated and will be removed from Rails 5.1 # (use ActiveSupport::Reloader.to_prepare instead) if Gem.loaded_specs["activesupport"].version >= Gem::Version.new("5") ActiveSupport::Reloader else ActionDispatch::Reloader end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trailblazer-rails-2.1.7 | lib/trailblazer/rails/railtie.rb |