Sha256: 5a0028c44dba2f57f53be0006545bb0e0bc3bfd97f90b78fc5ce64c87f83d247

Contents?: true

Size: 430 Bytes

Versions: 73

Compression:

Stored size: 430 Bytes

Contents

class ApplicationController < ActionController::Base
  before_filter :setup_user

  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception

  def setup_user
    @current_user = User.new
    @current_user.admin = true
    # if params[:admin]
    #   @current_user.admin = true
    # end
  end

  def current_user
    @current_user
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
pulitzer-0.5.7 spec/dummy/app/controllers/application_controller.rb
pulitzer-0.5.6 spec/dummy/app/controllers/application_controller.rb
pulitzer-0.5.5 spec/dummy/app/controllers/application_controller.rb
pulitzer-0.5.4 spec/dummy/app/controllers/application_controller.rb
pulitzer-0.5.3 spec/dummy/app/controllers/application_controller.rb
pulitzer-0.5.2 spec/dummy/app/controllers/application_controller.rb
pulitzer-0.5.1 spec/dummy/app/controllers/application_controller.rb
pulitzer-0.5.0 spec/dummy/app/controllers/application_controller.rb
pulitzer-0.4.16 spec/dummy/app/controllers/application_controller.rb
pulitzer-0.4.15 spec/dummy/app/controllers/application_controller.rb
pulitzer-0.4.14 spec/dummy/app/controllers/application_controller.rb
pulitzer-0.4.13 spec/dummy/app/controllers/application_controller.rb
pulitzer-0.4.12 spec/dummy/app/controllers/application_controller.rb
pulitzer-0.4.11 spec/dummy/app/controllers/application_controller.rb
pulitzer-0.4.10 spec/dummy/app/controllers/application_controller.rb
pulitzer-0.4.9 spec/dummy/app/controllers/application_controller.rb
pulitzer-0.4.8 spec/dummy/app/controllers/application_controller.rb
pulitzer-0.4.7 spec/dummy/app/controllers/application_controller.rb
pulitzer-0.4.6 spec/dummy/app/controllers/application_controller.rb
pulitzer-0.4.5 spec/dummy/app/controllers/application_controller.rb