Fix for ActiveRecord with no Rails