Merge pull request #2054 from bf4/remove_unneeded_model_methods

ActiveModel::Model handles the ActiveModel::Errors API
This commit is contained in:
Benjamin Fleischer 2017-02-16 11:54:51 -06:00 committed by GitHub
commit f1f8714b89

View File

@ -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