Sha256: 54bdb454a27dbc2f1a7412ba367009437793b4c4863b7377fd7b0a312c8c16cd

Contents?: true

Size: 245 Bytes

Versions: 9

Compression:

Stored size: 245 Bytes

Contents

class ProfilesController < ApplicationController
  helper_method :current_user

  def show
  end

  def current_user
    if session[:user_id]
      user = User.new
      user.id = session[:user_id]
      @current_user ||= user
    end
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
impressionist-cody-2.0.0 spec/dummy/app/controllers/profiles_controller.rb
impressionist-2.0.0 tests/test_app/app/controllers/profiles_controller.rb
impressionist-1.6.1 tests/test_app/app/controllers/profiles_controller.rb
impressionist-1.6.0 tests/test_app/app/controllers/profiles_controller.rb
impressionist-1.5.2 tests/test_app/app/controllers/profiles_controller.rb
impressionist2-1.5.5 tests/test_app/app/controllers/profiles_controller.rb
impressionist2-1.5.4 tests/test_app/app/controllers/profiles_controller.rb
impressionist2-1.5.3 tests/test_app/app/controllers/profiles_controller.rb
impressionist2-1.5.1 tests/test_app/app/controllers/profiles_controller.rb