Sha256: 1a0198bb81156c243660f4984bc5472f0b36034bc1edf25d1cd904ff3fdd34e9

Contents?: true

Size: 297 Bytes

Versions: 30

Compression:

Stored size: 297 Bytes

Contents

class PostsController < ApplicationController
  helper_method :current_user
  impressionist
  def index

  end

  def show

  end

  def edit

  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

30 entries across 30 versions & 3 rubygems

Version Path
impressionist-1.4.3 tests/test_app/app/controllers/posts_controller.rb
impressionist-1.4.2 tests/test_app/app/controllers/posts_controller.rb
impressionist-1.4.1 test_app/app/controllers/posts_controller.rb
impressionist-1.4.0 test_app/app/controllers/posts_controller.rb
impressionist-1.3.2 test_app/app/controllers/posts_controller.rb
impressionist-1.3.1 test_app/app/controllers/posts_controller.rb
impressionist-1.3.0 test_app/app/controllers/posts_controller.rb
impressionist-1.2.0 test_app/app/controllers/posts_controller.rb
impressionist-1.1.1 test_app/app/controllers/posts_controller.rb
impressionist-1.1.0 test_app/app/controllers/posts_controller.rb