mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Refactored to remove unused variable
This commit is contained in:
parent
341e611547
commit
d18e8b1a38
2 changed files with 3 additions and 3 deletions
|
@ -72,7 +72,7 @@ module AbstractControllerTests
|
|||
end
|
||||
|
||||
class WithProc < Base
|
||||
layout proc { |c| "overwrite" }
|
||||
layout proc { "overwrite" }
|
||||
|
||||
def index
|
||||
render :template => ActionView::Template::Text.new("Hello proc!")
|
||||
|
@ -80,7 +80,7 @@ module AbstractControllerTests
|
|||
end
|
||||
|
||||
class WithProcReturningNil < Base
|
||||
layout proc { |c| nil }
|
||||
layout proc { nil }
|
||||
|
||||
def index
|
||||
render template: ActionView::Template::Text.new("Hello nil!")
|
||||
|
|
|
@ -103,7 +103,7 @@ class HasNilLayoutSymbol < LayoutTest
|
|||
end
|
||||
|
||||
class HasNilLayoutProc < LayoutTest
|
||||
layout proc { |c| nil }
|
||||
layout proc { nil }
|
||||
end
|
||||
|
||||
class PrependsViewPathController < LayoutTest
|
||||
|
|
Loading…
Reference in a new issue