Rails 2.3 compatibility

Implemented the suggestions from @RyanNaughton in (unrelated) #95.