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