aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/builder/has_one.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-10-02 14:52:59 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-10-02 14:52:59 -0700
commit75beb6c7c3173ba78f212cfeccaa172beccf4e92 (patch)
treec1dcf5786ebdc9d466753d7745b1ab167b664464 /activerecord/lib/active_record/associations/builder/has_one.rb
parent5d8b7760ee3700c6d897e51e01dd2055da80506b (diff)
downloadrails-75beb6c7c3173ba78f212cfeccaa172beccf4e92.tar.gz
rails-75beb6c7c3173ba78f212cfeccaa172beccf4e92.tar.bz2
rails-75beb6c7c3173ba78f212cfeccaa172beccf4e92.zip
push constructable? on to the reflection
Diffstat (limited to 'activerecord/lib/active_record/associations/builder/has_one.rb')
-rw-r--r--activerecord/lib/active_record/associations/builder/has_one.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/associations/builder/has_one.rb b/activerecord/lib/active_record/associations/builder/has_one.rb
index 62d454ce55..accd29e5ef 100644
--- a/activerecord/lib/active_record/associations/builder/has_one.rb
+++ b/activerecord/lib/active_record/associations/builder/has_one.rb
@@ -10,10 +10,6 @@ module ActiveRecord::Associations::Builder
valid
end
- def constructable?
- !options[:through]
- end
-
def valid_dependent_options
[:destroy, :delete, :nullify, :restrict_with_error, :restrict_with_exception]
end