1
0
Fork 0
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:
Anupam Choudhury 2013-03-28 15:58:03 +05:30
parent 341e611547
commit d18e8b1a38
2 changed files with 3 additions and 3 deletions

View file

@ -72,7 +72,7 @@ module AbstractControllerTests
end end
class WithProc < Base class WithProc < Base
layout proc { |c| "overwrite" } layout proc { "overwrite" }
def index def index
render :template => ActionView::Template::Text.new("Hello proc!") render :template => ActionView::Template::Text.new("Hello proc!")
@ -80,7 +80,7 @@ module AbstractControllerTests
end end
class WithProcReturningNil < Base class WithProcReturningNil < Base
layout proc { |c| nil } layout proc { nil }
def index def index
render template: ActionView::Template::Text.new("Hello nil!") render template: ActionView::Template::Text.new("Hello nil!")

View file

@ -103,7 +103,7 @@ class HasNilLayoutSymbol < LayoutTest
end end
class HasNilLayoutProc < LayoutTest class HasNilLayoutProc < LayoutTest
layout proc { |c| nil } layout proc { nil }
end end
class PrependsViewPathController < LayoutTest class PrependsViewPathController < LayoutTest