Skip to content

Instantly share code, notes, and snippets.

@Bobochka
Created April 29, 2018 09:20
Show Gist options
  • Select an option

  • Save Bobochka/5ae9d5fed6eef41cf9cd90f9560d950c to your computer and use it in GitHub Desktop.

Select an option

Save Bobochka/5ae9d5fed6eef41cf9cd90f9560d950c to your computer and use it in GitHub Desktop.
AuthLogic destroy/reset user sessions
User.admin.find_each do |user|
user.update_column(:persistence_token, Authlogic::Random.hex_token)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment