diff options
author | Akira Matsuda <ronnie@dio.jp> | 2016-12-25 01:15:53 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2016-12-25 01:16:36 +0900 |
commit | a4c640ac143786fa945be312f8db3f2827f649f0 (patch) | |
tree | c3795f0ee613ee3674dceb02f55a91e8064a8a87 /activerecord | |
parent | 87ec7009bfdaad292a18b8bbdc9b25522bb9b1a1 (diff) | |
download | rails-a4c640ac143786fa945be312f8db3f2827f649f0.tar.gz rails-a4c640ac143786fa945be312f8db3f2827f649f0.tar.bz2 rails-a4c640ac143786fa945be312f8db3f2827f649f0.zip |
AR::ConnectionAdapters::PostgreSQL::Name#parts is called from other instances
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/utils.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/utils.rb b/activerecord/lib/active_record/connection_adapters/postgresql/utils.rb index 56a445f086..a3f9ce6d64 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/utils.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/utils.rb @@ -34,6 +34,12 @@ module ActiveRecord parts.hash end + protected + + def parts + @parts ||= [@schema, @identifier].compact + end + private def unquote(part) if part && part.start_with?('"') @@ -42,10 +48,6 @@ module ActiveRecord part end end - - def parts - @parts ||= [@schema, @identifier].compact - end end module Utils # :nodoc: |