Skip to content

Double required messages for rails 5 belongs_to #64

@elbzero

Description

@elbzero

Hello,

I have noticed in rails 5 belongs_to associations are required by default https://blog.bigbinary.com/2016/02/15/rails-5-makes-belong-to-association-required-by-default.html

Schema validations will also add its own validator as well. Because of this it gives a weird error message like this "Owner must exist and Owner can't be blank"

I was hoping that it could be modified to not add the validator if there was already existing validator attached to the field for this use case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions