mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #30759 from y-yagi/remove_unused_methods
Remove unused methods from `RenderPartialWithRecordIdentificationController`
This commit is contained in:
commit
285f9a89d5
1 changed files with 0 additions and 10 deletions
|
@ -17,21 +17,11 @@ class RenderPartialWithRecordIdentificationController < ActionController::Base
|
|||
render partial: Reply.base
|
||||
end
|
||||
|
||||
def render_with_has_many_through_association
|
||||
@developer = Developer.first
|
||||
render partial: @developer.topics
|
||||
end
|
||||
|
||||
def render_with_has_one_association
|
||||
@company = Company.find(1)
|
||||
render partial: @company.mascot
|
||||
end
|
||||
|
||||
def render_with_belongs_to_association
|
||||
@reply = Reply.find(1)
|
||||
render partial: @reply.topic
|
||||
end
|
||||
|
||||
def render_with_record
|
||||
@developer = Developer.first
|
||||
render partial: @developer
|
||||
|
|
Loading…
Reference in a new issue