Sha256: 70d1feeafe1bdaf61b7e798191902519ca515770f409e7ec7d341d08c9e840f7
Contents?: true
Size: 968 Bytes
Versions: 2
Compression:
Stored size: 968 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.use_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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trailblazer-rails-2.1.4 | lib/trailblazer/rails/railtie.rb |
trailblazer-rails-2.1.2 | lib/trailblazer/rails/railtie.rb |