diff options
author | Arthur Neves <arthurnn@gmail.com> | 2014-06-11 11:26:24 -0400 |
---|---|---|
committer | Arthur Neves <arthurnn@gmail.com> | 2014-06-11 11:27:31 -0400 |
commit | 4a15c53de4faeb39b6aee09312b05ea8a112cb9c (patch) | |
tree | 86235cc4256622c3182d80eba0c3f855d02a9f60 /activerecord | |
parent | cd7cd9b947c75373998b3cb7241753587c4371f3 (diff) | |
download | rails-4a15c53de4faeb39b6aee09312b05ea8a112cb9c.tar.gz rails-4a15c53de4faeb39b6aee09312b05ea8a112cb9c.tar.bz2 rails-4a15c53de4faeb39b6aee09312b05ea8a112cb9c.zip |
Add has_one? docs [skip ci]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/reflection.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb index 24f3de019d..6a098e44ca 100644 --- a/activerecord/lib/active_record/reflection.rb +++ b/activerecord/lib/active_record/reflection.rb @@ -400,6 +400,7 @@ Joining, Preloading and eager loading of these associations is deprecated and wi macro == :belongs_to end + # Returns +true+ if +self+ is a +has_one+ reflection. def has_one? macro == :has_one end |