`JoinPart#==` is already replaced with `JoinPart#match?`

See e73fbdf804.
This commit is contained in:
Ryuta Kamizono 2018-08-10 10:01:44 +09:00
parent 49b908ae3d
commit db462304a5
3 changed files with 0 additions and 21 deletions

View File

@ -20,13 +20,6 @@ module Polyamorous
end
end
# Reference: https://github.com/rails/rails/commit/9b15db5
# NOTE: Not sure we still need it?
#
def ==(other)
base_klass == other.base_klass
end
def build_constraint(klass, table, key, foreign_table, foreign_key)
if reflection.polymorphic?
super(klass, table, key, foreign_table, foreign_key)

View File

@ -20,13 +20,6 @@ module Polyamorous
end
end
# Reference: https://github.com/rails/rails/commit/9b15db5
# NOTE: Not sure we still need it?
#
def ==(other)
base_klass == other.base_klass
end
def build_constraint(klass, table, key, foreign_table, foreign_key)
if reflection.polymorphic?
super(klass, table, key, foreign_table, foreign_key)

View File

@ -19,13 +19,6 @@ module Polyamorous
end
end
# Reference: https://github.com/rails/rails/commit/9b15db5
# NOTE: Not sure we still need it?
#
def ==(other)
base_klass == other.base_klass
end
def build_constraint(klass, table, key, foreign_table, foreign_key)
if reflection.polymorphic?
super(klass, table, key, foreign_table, foreign_key)