Possible fix for ActiveRecord 2.3