aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/reflection.rb
diff options
context:
space:
mode:
authorArthur Neves <arthurnn@gmail.com>2014-06-11 11:26:24 -0400
committerArthur Neves <arthurnn@gmail.com>2014-06-11 11:27:31 -0400
commit4a15c53de4faeb39b6aee09312b05ea8a112cb9c (patch)
tree86235cc4256622c3182d80eba0c3f855d02a9f60 /activerecord/lib/active_record/reflection.rb
parentcd7cd9b947c75373998b3cb7241753587c4371f3 (diff)
downloadrails-4a15c53de4faeb39b6aee09312b05ea8a112cb9c.tar.gz
rails-4a15c53de4faeb39b6aee09312b05ea8a112cb9c.tar.bz2
rails-4a15c53de4faeb39b6aee09312b05ea8a112cb9c.zip
Add has_one? docs [skip ci]
Diffstat (limited to 'activerecord/lib/active_record/reflection.rb')
-rw-r--r--activerecord/lib/active_record/reflection.rb1
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