[rspec-devel] [ rspec-Patches-9232 ] ActionController::Base#render is sometimes protected
noreply at rubyforge.org
noreply at rubyforge.org
Tue Mar 13 07:30:36 EDT 2007
Patches item #9232, was opened at 2007-03-12 19:24
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3151&aid=9232&group_id=797
Category: rails plugin
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: Dan Manges (dcmanges)
>Assigned to: Aslak Hellesøy (aslak_hellesoy)
Summary: ActionController::Base#render is sometimes protected
Initial Comment:
ActionController::Base#render is protected.
That is, until ActionController::Layout is included in it; then it's public.
The problem is some plugins keep it protected by aliasing render with a protected method after ActionController::Layout makes it public.
It's probably an edge case, but the RSpec plugin should use
@controller.send :render, options
----------------------------------------------------------------------
Comment By: Aslak Hellesøy (aslak_hellesoy)
Date: 2007-03-13 07:30
Message:
Fixed on trunk (r1594)
----------------------------------------------------------------------
Comment By: Dan Manges (dcmanges)
Date: 2007-03-12 22:54
Message:
Rails trunk was just updated for consistency to keep #render
protected.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3151&aid=9232&group_id=797
More information about the rspec-devel
mailing list