instance method
session_auth=
Ruby on Rails 8.1.2
Since v3.1.12Signature
session_auth=(user)
Set the authorized user for this session
Parameters
-
userreq
Source
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 640
def session_auth=(user)
clear_cache!
internal_execute("SET SESSION AUTHORIZATION #{user}", nil, materialize_transactions: true)
end
Defined in activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb line 640
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::PostgreSQLAdapter