aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/reflection.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/reflection.rb')
-rw-r--r--activerecord/lib/active_record/reflection.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb
index dd437bd066..8b7f15882a 100644
--- a/activerecord/lib/active_record/reflection.rb
+++ b/activerecord/lib/active_record/reflection.rb
@@ -540,10 +540,9 @@ directive on your declaration like:
end
eowarn
- @source_reflection = reflections.first
- else
- @source_reflection = reflections.first
end
+
+ @source_reflection = reflections.first
end
# Returns the AssociationReflection object specified in the <tt>:through</tt> option