Skip to content
Permalink
Browse files

Updated action share code guide

  • Loading branch information...
jodosha committed Nov 12, 2016
1 parent 9770132 commit 9ac5c4f80123e06d9b93db73a55fbb3a4dd54400
Showing with 2 additions and 2 deletions.
  1. +2 −2 source/guides/actions/share-code.md
@@ -39,7 +39,7 @@ module Web
end
def current_user
@current_user ||= UserRepository.find(session[:user_id])
@current_user ||= UserRepository.new.find(session[:user_id])
end
end
end
@@ -120,7 +120,7 @@ module Web::Controllers::Books
private
def set_book
@book = BookRepository.find(params[:id])
@book = BookRepository.new.find(params[:id])
halt 404 if @book.nil?
end
end

0 comments on commit 9ac5c4f

Please sign in to comment.
You can’t perform that action at this time.