iA


Require Ruby 'Forwardable' on Leopard

by jhund. Average Reading Time: less than a minute.

When I upgraded to Leopard, some of my Rails apps broke. Ruby threw this error at me:

uninitialized constant User::Forwardable

Here is a simple fix:

require 'forwardable'

in environment.rb.

It seems that on Tiger ‘Forwardable’ was included by default, but not on Leopard any more. Not exactly sure why this is.