mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Better AMS Model attributes interface
This commit is contained in:
2
test/fixtures/poro.rb
vendored
2
test/fixtures/poro.rb
vendored
@@ -31,7 +31,7 @@ end
|
||||
# model.validate! # => ["cannot be nil"]
|
||||
# model.errors.full_messages # => ["name cannot be nil"]
|
||||
class ModelWithErrors < ::ActiveModelSerializers::Model
|
||||
attr_accessor :name
|
||||
attributes :name
|
||||
end
|
||||
|
||||
class Profile < Model
|
||||
|
||||
Reference in New Issue
Block a user