1
0
Fork 0
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:
Ryuta Kamizono 2017-09-30 18:11:00 +09:00 committed by GitHub
commit 285f9a89d5

View file

@ -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