Fixes warning in ActiveRecord 4.0