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

Version Path
hyper-operation-0.5.12 examples/five-letter-word-game/app/controllers/application_controller.rb
hyper-operation-0.5.11 examples/five-letter-word-game/app/controllers/application_controller.rb
hyper-operation-0.5.10 examples/five-letter-word-game/app/controllers/application_controller.rb
hyper-operation-0.5.9 examples/five-letter-word-game/app/controllers/application_controller.rb
hyper-operation-0.5.8 examples/five-letter-word-game/app/controllers/application_controller.rb
hyper-operation-0.5.7 examples/five-letter-word-game/app/controllers/application_controller.rb
hyper-operation-0.5.6 examples/five-letter-word-game/app/controllers/application_controller.rb
hyper-operation-0.5.5 examples/five-letter-word-game/app/controllers/application_controller.rb
hyper-operation-0.5.4 examples/five-letter-word-game/app/controllers/application_controller.rb
hyper-operation-0.5.3 examples/five-letter-word-game/app/controllers/application_controller.rb
hyper-operation-0.5.2 examples/five-letter-word-game/app/controllers/application_controller.rb
hyper-operation-0.5.1 examples/five-letter-word-game/app/controllers/application_controller.rb
hyper-operation-0.5.0 examples/five-letter-word-game/app/controllers/application_controller.rb