instance method
session_auth=
Ruby on Rails 8.0.4
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 625
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 625
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::PostgreSQLAdapter