Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Changeset [2e35fe18ffcb808b5cd64dd544fa44e7bfa55ca8] by Lewis Marshall

Revision 2e35fe18ffcb808b5cd64dd544fa44e7bfa55ca8, committed by Lewis Marshall · January 23rd, 2014 @ 02:39 PM

Fix respond_to? usage for Ruby 2.0

The path helpers are protected methods, and Ruby 2.0 changed the
behaviour of respond_to? so that it returns false for protected methods.

See http://tenderlovemaking.com/2012/09/07/protected-methods-and-ruby-2...

Adding true as the second argument will check both protected and private
methods which is what we want here, given we are calling respond_to? on
self.
https://github.com/ianwhite/resources_controller/commit/2e35fe18ffc...

1 changed file

  • M lib/resources_controller/named_route_helper.rb