Fix method_missing with Rails 4.