Sha256: d48ac61141ba0dda5303be48ec7b4a85fe035d5c400c83bd9ff21773c3a5a53c
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
require "rails/railtie" require "trailblazer/v2_1/loader" require "trailblazer/v2_1/rails/railtie/extend_application_controller" require "trailblazer/v2_1/rails/railtie/loader" module Trailblazer::V2_1 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.use_loader ||= true # TODO: remove with next release 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-future-2.1.0.rc1 | lib/trailblazer/v2_1/rails/railtie.rb |