Skip to Content Skip to Search
Namespace
Methods
M

Instance Public methods

mark_authentication_active()

# File app/models/concerns/authentication_inactivable.rb, line 32
def mark_authentication_active
  assign_attributes(
    authentication_inactive_reason: nil,
    authentication_inactive: false
  )
  self
end

mark_authentication_inactive(reason = {})

# File app/models/concerns/authentication_inactivable.rb, line 24
def mark_authentication_inactive(reason = {})
  assign_attributes(
    authentication_inactive_reason: reason,
    authentication_inactive: true
  )
  self
end