diff options
author | Xavier Noria <fxn@hashref.com> | 2013-06-01 10:07:35 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2013-06-01 10:23:08 +0200 |
commit | f2855f6ef17254718f625abba285841212dfbb87 (patch) | |
tree | 8fb7a2066bfd725e686615edc2cbe284f631ff49 /activesupport/lib/active_support | |
parent | 8ac8eb66c19d352dde548fc5c9a632ffbb586abe (diff) | |
download | rails-f2855f6ef17254718f625abba285841212dfbb87.tar.gz rails-f2855f6ef17254718f625abba285841212dfbb87.tar.bz2 rails-f2855f6ef17254718f625abba285841212dfbb87.zip |
revises the documentation of ActiveRecord::Relation#find_or_create_by [ci skip]
* Inspect uses double quotes.
* Inspect puts a hash as in #<User ...>.
* Documents the return value, and makes explicit it can be an invalid record.
* Documents the method is not atomic.
* Documents a way to handle UNIQUE contraint violations in the event of a race condition.
* Removes the "Examples" header according to our guidelines.
Diffstat (limited to 'activesupport/lib/active_support')
0 files changed, 0 insertions, 0 deletions