Sha256: 9f666d81a19afa5be84b89bffffa2f816120d38d589d4a735e99bfab6aedd947

Contents?: true

Size: 373 Bytes

Versions: 26

Compression:

Stored size: 373 Bytes

Contents

class ArticlesController < ApplicationController
  before_filter :test_current_user_var

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

  def index
    impressionist(Article.first,"this is a test article impression")
  end

  def show
    impressionist(Article.first)
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
impressionist-1.5.2 tests/test_app/app/controllers/articles_controller.rb
impressionist2-1.5.5 tests/test_app/app/controllers/articles_controller.rb
impressionist2-1.5.4 tests/test_app/app/controllers/articles_controller.rb
impressionist2-1.5.3 tests/test_app/app/controllers/articles_controller.rb
impressionist2-1.5.1 tests/test_app/app/controllers/articles_controller.rb
impressionist-1.5.1 tests/test_app/app/controllers/articles_controller.rb
impressionist-1.4.13 tests/test_app/app/controllers/articles_controller.rb
impressionist-1.4.12 tests/test_app/app/controllers/articles_controller.rb
impressionist-1.4.11 tests/test_app/app/controllers/articles_controller.rb
impressionist-1.4.10 tests/test_app/app/controllers/articles_controller.rb
impressionist-1.4.9 tests/test_app/app/controllers/articles_controller.rb
impressionist-1.4.8 tests/test_app/app/controllers/articles_controller.rb
impressionist-1.4.7 tests/test_app/app/controllers/articles_controller.rb
impressionist-1.4.6 tests/test_app/app/controllers/articles_controller.rb
impressionist-1.4.5 tests/test_app/app/controllers/articles_controller.rb
impressionist-1.4.4 tests/test_app/app/controllers/articles_controller.rb
impressionist-1.4.3 tests/test_app/app/controllers/articles_controller.rb
impressionist-1.4.2 tests/test_app/app/controllers/articles_controller.rb
impressionist-1.4.1 test_app/app/controllers/articles_controller.rb
impressionist-1.4.0 test_app/app/controllers/articles_controller.rb