lib/ph_model.rb in ph_model-1.1.0 vs lib/ph_model.rb in ph_model-1.1.1
- old
+ new
@@ -29,10 +29,10 @@
include Concerns::AttributeRequiredValidation
include Concerns::AttributeTypeValidation
include Concerns::AttributeNestedValidation
include Concerns::AttributeOfArrayTypeInitialization
- def as_json
+ def as_json(*)
{}.tap do |hash|
self.class.attributes.each do |attribute_name, _info|
hash[attribute_name] = send(attribute_name).as_json
end
end