Sha256: c842041b5a98d0a16d35ff274ee265fd3e856a6bb6fe5af39234c1e757884e11
Contents?: true
Size: 609 Bytes
Versions: 8
Compression:
Stored size: 609 Bytes
Contents
class User < ActiveRecord::Base if Authentication.type.saml? devise :saml_authenticatable, :rememberable else # both database and disabled authentication styles use devise 'database_authentication' # disabled actually just signs in a guest user for every request from application_controller devise :database_authenticatable, :rememberable end has_many :query_versions has_many :queries, through: :query_versions has_many :snippets serialize :groups def self.guest_user where(email: 'guest-user@test.com', role: Role::ADMIN_ROLE, name: 'Guest').first_or_create end end
Version data entries
8 entries across 8 versions & 1 rubygems