1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #6004 from lest/patch-1

remove calls to deprecated find(:first) in actionpack test suite
This commit is contained in:
Jon Leighton 2012-04-26 13:48:21 -07:00
commit 770c809db4

View file

@ -16,7 +16,7 @@ class RenderPartialWithRecordIdentificationController < ActionController::Base
end
def render_with_has_many_through_association
@developer = Developer.find(:first)
@developer = Developer.first
render :partial => @developer.topics
end
@ -31,7 +31,7 @@ class RenderPartialWithRecordIdentificationController < ActionController::Base
end
def render_with_record
@developer = Developer.find(:first)
@developer = Developer.first
render :partial => @developer
end