From 4a15c53de4faeb39b6aee09312b05ea8a112cb9c Mon Sep 17 00:00:00 2001 From: Arthur Neves Date: Wed, 11 Jun 2014 11:26:24 -0400 Subject: Add has_one? docs [skip ci] --- activerecord/lib/active_record/reflection.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/lib/active_record') 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 -- cgit v1.2.3