Sha256: 9c131e057dd05e6834c509ebc5aaba8c4858bbfb7a99be002ddd949db7214445
Contents?: true
Size: 1017 Bytes
Versions: 1
Compression:
Stored size: 1017 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.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-rails-2.1.6 | lib/trailblazer/rails/railtie.rb |