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:
commit
770c809db4
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue