Skip to content

Commit a4c640a

Browse files
committed
AR::ConnectionAdapters::PostgreSQL::Name#parts is called from other instances
1 parent 87ec700 commit a4c640a

File tree

1 file changed

+6
-4
lines changed
  • activerecord/lib/active_record/connection_adapters/postgresql

1 file changed

+6
-4
lines changed

activerecord/lib/active_record/connection_adapters/postgresql/utils.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ def hash
3434
parts.hash
3535
end
3636

37+
protected
38+
39+
def parts
40+
@parts ||= [@schema, @identifier].compact
41+
end
42+
3743
private
3844
def unquote(part)
3945
if part && part.start_with?('"')
@@ -42,10 +48,6 @@ def unquote(part)
4248
part
4349
end
4450
end
45-
46-
def parts
47-
@parts ||= [@schema, @identifier].compact
48-
end
4951
end
5052

5153
module Utils # :nodoc:

0 commit comments

Comments
 (0)