diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-12-26 16:28:36 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-12-26 16:28:36 -0700 |
commit | 5f521cbff3c8a46cfc8e16b234294a20c285d00d (patch) | |
tree | 531329ffc6a65d7dc8da260c5ab75a649294ae53 /activerecord/lib/active_record/attribute_assignment.rb | |
parent | efe5986696960c53deca53312cc6d67c0a303537 (diff) | |
download | rails-5f521cbff3c8a46cfc8e16b234294a20c285d00d.tar.gz rails-5f521cbff3c8a46cfc8e16b234294a20c285d00d.tar.bz2 rails-5f521cbff3c8a46cfc8e16b234294a20c285d00d.zip |
Go through normal `where` logic in uniqueness validation
This code could use some much heavier refactoring. It looks like
`build_relation` duplicates most of the logic of `Relation#where` and
`PredicateBuilder` with regards to handling associations and attribute
aliases
Diffstat (limited to 'activerecord/lib/active_record/attribute_assignment.rb')
0 files changed, 0 insertions, 0 deletions