Created
December 3, 2013 01:34
Revisions
-
supernullset created this gist
Dec 3, 2013 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,38 @@ require "rails" require "action_controller/railtie" class Dummy < Rails::Application config.root = File.dirname(__FILE__) config.session_store :cookie_store, key: '****************************************' config.secret_token = '****************************************' # Log to spec/dummy/test.log config.logger = Logger.new(File.expand_path('../test.log', __FILE__)) # This is important, otherwise the tests will fail Rails.logger = config.logger config.cache_classes = true config.eager_load = false config.serve_static_assets = true config.static_cache_control = "public, max-age=3600" config.consider_all_requests_local = true config.action_controller.perform_caching = false config.action_dispatch.show_exceptions = false config.action_controller.allow_forgery_protection = false # config.action_mailer.delivery_method = :test config.active_support.deprecation = :stderr # config.assets.enabled = true # config.assets.prefix = "/assets" # Our routes # routes.draw do # end puts ">>> #{config.root}" end class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception end