Sha256: 657bb68e4e57ed7c6bbc5c63b45fa9ba36a1bfdbaa9bca4380740f78c60f7bfc
Contents?: true
Size: 339 Bytes
Versions: 12
Compression:
Stored size: 339 Bytes
Contents
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 private def current_user if Rails.env.test? nil else DummyUser.new(email: "dummy@alchemy.com") end end end
Version data entries
12 entries across 12 versions & 2 rubygems