Sha256: 3bd0a1ea813ffcff90e152276ac62ace1d3c0510a556ae8e29c9ce30e7c94010

Contents?: true

Size: 291 Bytes

Versions: 2

Compression:

Stored size: 291 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: :null_session

  def sign_in(scope, opts)
    instance_variable_set("@current_user", scope)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_token_auth-0.0.4 test/dummy/app/controllers/application_controller.rb
simple_token_auth-0.0.3 test/dummy/app/controllers/application_controller.rb