Sha256: 81c77477cceb9fdb37e5380ae94a362e0946a5eeaeb135e249171968678a735e
Contents?: true
Size: 585 Bytes
Versions: 13
Compression:
Stored size: 585 Bytes
Contents
::User # force User Model to load so we can get the policies up! # Note is important to fully qualify the name otherwise rails gets # confused when autoloading, and you will get an error when files changed # during development. see http://stackoverflow.com/questions/17561697/argumenterror-a-copy-of-applicationcontroller-has-been-removed-from-the-module/23008837#23008837 class ApplicationController < ActionController::Base protect_from_forgery with: :exception def acting_user session.delete 'hyperloop-dummy-init' unless session.id ::User.find(session.id) end end
Version data entries
13 entries across 13 versions & 1 rubygems