class Trailblazer::Railtie

Private Instance Methods

reloader_class() click to toggle source
# File lib/trailblazer/rails/railtie.rb, line 19
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