lib/versioned_database_functions/adapters/postgres/connection.rb
# An integer representing the version of Postgres we're connected to.
#
# postgresql_version is public in Rails 5, but protected in earlier
# versions.
#
# @return [Integer]
An integer representing the version of Postgres we're connected to.
postgresql_version is public in Rails 5, but protected in earlier
versions.
An integer representing the version of Postgres we ' re connected to . postgresql_version is public in Rails 5 but protected in earlier versions .
def postgresql_version
          if undecorated_connection.respond_to?(:postgresql_version)
            super
          else
            undecorated_connection.send(:postgresql_version)
          end
        end
def postgresql_version if undecorated_connection . respond_to? ( :postgresql_version ) super else undecorated_connection . send ( :postgresql_version ) end end
An integer representing the version of Postgres we're connected to.
An integer representing the version of Postgres we ' re connected to .
None
Integer