From 006956e56bfc96d5c8abe49f29f9bbaca1e578b3 Mon Sep 17 00:00:00 2001 From: Benjamin Fleischer Date: Wed, 15 Feb 2017 20:30:28 -0600 Subject: [PATCH] ActiveModel::Model handles the ActiveModel::Errors API As pointed out in https://github.com/rails-api/active_model_serializers/issues/2049 ActiveModel::Model already extends ActiveModel::Translation which implements human_attribute_name and lookup_ancestors --- lib/active_model_serializers/model.rb | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/active_model_serializers/model.rb b/lib/active_model_serializers/model.rb index 7e05ffe6..e3c86e98 100644 --- a/lib/active_model_serializers/model.rb +++ b/lib/active_model_serializers/model.rb @@ -125,16 +125,5 @@ module ActiveModelSerializers "#{id}-#{updated_at.strftime('%Y%m%d%H%M%S%9N')}" ].compact) end - - # The following methods are needed to be minimally implemented for ActiveModel::Errors - # :nocov: - def self.human_attribute_name(attr, _options = {}) - attr - end - - def self.lookup_ancestors - [self] - end - # :nocov: end end