Merge pull request #23423 from yui-knk/remove_unnecessary_override
Remove unnecessary overriding of `#initialize`
This commit is contained in:
commit
f7775c74d0
@ -594,10 +594,6 @@ def primary_key(klass)
|
||||
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 @@ def association_class
|
||||
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 @@ def calculate_constructable(macro, options)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user