aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2016-02-02 20:36:44 +0900
committeryui-knk <spiketeika@gmail.com>2016-02-02 20:36:44 +0900
commitdaf0f23b77a582340c0a52a3024069fd21ade633 (patch)
tree4fbafb0db6783b84b32f54a3a61f496456562eef /activerecord
parent7710d7f432ca776885a346346ccf0971e80b7a34 (diff)
downloadrails-daf0f23b77a582340c0a52a3024069fd21ade633.tar.gz
rails-daf0f23b77a582340c0a52a3024069fd21ade633.tar.bz2
rails-daf0f23b77a582340c0a52a3024069fd21ade633.zip
Remove unnecessary overriding of `#initialize`
`#initialize` of `HasManyReflection`, `HasOneReflection` and `BelongsToReflection` only pass all arguments to `super` by passed order. These overriding can be removed.
Diffstat (limited to 'activerecord')
-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