Permalink
Browse files

Seriously? ActiveRecord on an Array??

  • Loading branch information...
1 parent 84bdd24 commit 2ee1ca0e45f0abb6a10cc9b4bc3c3cb8df185997 @josemotanet josemotanet committed May 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/content_controller.rb
@@ -4,7 +4,7 @@ def index
@talk = Talk.new
@admissions = Admission.all
- @user = @admissions.find_by_provider_and_uid session[:user][:provider], session[:user][:uid] if session[:user]
+ @user = Admission.find_by_provider_and_uid session[:user][:provider], session[:user][:uid] if session[:user]
end
def map

0 comments on commit 2ee1ca0

Please sign in to comment.