mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Document Model delcared attributes
This commit is contained in:
@@ -56,14 +56,6 @@ module ActiveModelSerializers
|
||||
base.attributes :id
|
||||
end
|
||||
|
||||
# Override the initialize method so that attributes aren't processed.
|
||||
#
|
||||
# @param attributes [Hash]
|
||||
def initialize(attributes = {})
|
||||
@errors = ActiveModel::Errors.new(self)
|
||||
super
|
||||
end
|
||||
|
||||
# Override the +attributes+ method so that the hash is derived from +attribute_names+.
|
||||
#
|
||||
# The the fields in +attribute_names+ determines the returned hash.
|
||||
|
||||
Reference in New Issue
Block a user