mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Merge pull request #2054 from bf4/remove_unneeded_model_methods
ActiveModel::Model handles the ActiveModel::Errors API
This commit is contained in:
commit
f1f8714b89
@ -125,16 +125,5 @@ module ActiveModelSerializers
|
|||||||
"#{id}-#{updated_at.strftime('%Y%m%d%H%M%S%9N')}"
|
"#{id}-#{updated_at.strftime('%Y%m%d%H%M%S%9N')}"
|
||||||
].compact)
|
].compact)
|
||||||
end
|
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
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user