Sha256: c2c6ae0b1b7726cc1913ffc295dafab6958b946506b46fa152fafa3b73319e15

Contents?: true

Size: 365 Bytes

Versions: 8

Compression:

Stored size: 365 Bytes

Contents

class UsersController < ApplicationController
  respond_to?(:before_action) ? (before_action :authenticate_user!) : (before_filter :authenticate_user!)

  def index
    @users = User.all
  end

  def show
    @user = User.find(params[:id])
  end

  def start_session
    @user = User.find(params[:id])
    cookies[:session_id] = @user.encrypted_password
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rollbar-2.18.2 spec/dummyapp/app/controllers/users_controller.rb
rollbar-2.18.0 spec/dummyapp/app/controllers/users_controller.rb
rollbar-2.17.0 spec/dummyapp/app/controllers/users_controller.rb
rollbar-2.16.4 spec/dummyapp/app/controllers/users_controller.rb
rollbar-2.16.3 spec/dummyapp/app/controllers/users_controller.rb
rollbar-2.16.2 spec/dummyapp/app/controllers/users_controller.rb
rollbar-2.16.0 spec/dummyapp/app/controllers/users_controller.rb
rollbar-2.15.6 spec/dummyapp/app/controllers/users_controller.rb