weixin_39834084
weixin_39834084
2020-12-08 19:56

update_attributes do not run validation checks

Default active record behaviour it will run validation check for update_attributes.

该提问来源于开源项目:adelevie/parse_resource

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

4条回答

  • weixin_39630813 weixin_39630813 5月前

    This seems like it would be addressed if parse_resource depended on ActiveAttr. What do you think?

    点赞 评论 复制链接分享
  • weixin_39834084 weixin_39834084 5月前

    Possibly, also i notice that not all validations are available for instance, validates_uniqueness_of etc. I think we should address it in the next version of parse_resource.

    点赞 评论 复制链接分享
  • weixin_39630813 weixin_39630813 5月前

    Sounds good.

    点赞 评论 复制链接分享
  • weixin_39688636 weixin_39688636 5月前

    Closing old issues. Feel free to submit a pull request if this is still an issue and you found a solution.

    点赞 评论 复制链接分享

相关推荐