Created
December 3, 2013 01:34
-
-
Save supernullset/7762398 to your computer and use it in GitHub Desktop.
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 characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment