Skip to content

Commit f1f8714

Browse files
authored
Merge pull request #2054 from bf4/remove_unneeded_model_methods
ActiveModel::Model handles the ActiveModel::Errors API
2 parents a9d533d + 006956e commit f1f8714

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

lib/active_model_serializers/model.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,5 @@ def cache_key
125125
"#{id}-#{updated_at.strftime('%Y%m%d%H%M%S%9N')}"
126126
].compact)
127127
end
128-
129-
# The following methods are needed to be minimally implemented for ActiveModel::Errors
130-
# :nocov:
131-
def self.human_attribute_name(attr, _options = {})
132-
attr
133-
end
134-
135-
def self.lookup_ancestors
136-
[self]
137-
end
138-
# :nocov:
139128
end
140129
end

0 commit comments

Comments
 (0)