Sha256: 7bc2ac81e4f27db7ac56c8b683156f2e97d9697d365e8bc82718ac987b1ac1c8
Contents?: true
Size: 472 Bytes
Versions: 5
Compression:
Stored size: 472 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 before_filter :profiler_check helper :all protected def profiler_check if params[:profile].present? Rack::MiniProfiler.authorize_request end end def after_sign_in_path_for(resource_or_scope) session.fetch 'user_return_to', '/' end end
Version data entries
5 entries across 5 versions & 1 rubygems