Orbit/vendor/impressionist/test_app/app/controllers/posts_controller.rb

24 lines
297 B
Ruby
Raw Normal View History

2012-05-15 14:42:49 +00:00
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