aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2016-02-02 07:21:32 -0700
committerSean Griffin <sean@seantheprogrammer.com>2016-02-02 07:21:32 -0700
commitf7775c74d0a9462e89325b145f1aafd029646ba6 (patch)
tree0c82aef7e37bd68467ce5ef0c4c23c68fa19528c
parent85298f5a4e2c4744fb41ef15da3939167e2efbbf (diff)
parentdaf0f23b77a582340c0a52a3024069fd21ade633 (diff)
downloadrails-f7775c74d0a9462e89325b145f1aafd029646ba6.tar.gz
rails-f7775c74d0a9462e89325b145f1aafd029646ba6.tar.bz2
rails-f7775c74d0a9462e89325b145f1aafd029646ba6.zip
Merge pull request #23423 from yui-knk/remove_unnecessary_override
Remove unnecessary overriding of `#initialize`
-rw-r--r--activerecord/lib/active_record/reflection.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb
index 823ca1f54f..ab93d97eb3 100644
--- a/activerecord/lib/active_record/reflection.rb
+++ b/activerecord/lib/active_record/reflection.rb
@@ -594,10 +594,6 @@ module ActiveRecord
end
class HasManyReflection < AssociationReflection # :nodoc:
- def initialize(name, scope, options, active_record)
- super(name, scope, options, active_record)
- end
-
def macro; :has_many; end
def collection?; true; end
@@ -612,10 +608,6 @@ module ActiveRecord
end
class HasOneReflection < AssociationReflection # :nodoc:
- def initialize(name, scope, options, active_record)
- super(name, scope, options, active_record)
- end
-
def macro; :has_one; end
def has_one?; true; end
@@ -636,10 +628,6 @@ module ActiveRecord
end
class BelongsToReflection < AssociationReflection # :nodoc:
- def initialize(name, scope, options, active_record)
- super(name, scope, options, active_record)
- end
-
def macro; :belongs_to; end
def belongs_to?; true; end