Skip to content

Instantly share code, notes, and snippets.

@kml
Created December 13, 2016 23:06

Revisions

  1. kml created this gist Dec 13, 2016.
    12 changes: 12 additions & 0 deletions torquebox-bacstage-initializer.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    # encoding: utf-8
    # config/initializers/torquebox-backstage.rb

    # WARN: tilt autoloading 'tilt/haml' in a non thread-safe way; explicit require 'tilt/haml' suggested.
    # WARN: tilt autoloading 'tilt/sass' in a non thread-safe way; explicit require 'tilt/sass' suggested.
    require "tilt/haml"
    require "tilt/sass"

    # https://github.com/rails/rails/issues/15843
    Backstage::Application.disable(:sessions)

    Rails.configuration.middleware.delete(Rack::Webconsole)