Skip to content

History / How To: Require admin to activate account before sign_in

Revisions

  • Replace missing end from previous edit.

    @ClayShentrup ClayShentrup committed Mar 4, 2022
  • Remove unreachable branch where account is approved but not persisted. This created the nonsensical case where the user would see two errors: 1. That her email was not found. 2. That she was not approved. Caught this via SimpleCov with 100% line and branch coverage enabled.

    @ClayShentrup ClayShentrup committed Mar 4, 2022
  • Set the error key canonically.

    @ClayShentrup ClayShentrup committed Mar 4, 2022
  • Calling `<<` to an ActiveModel::Errors message array in order to add an error is deprecated. Please call `ActiveModel::Errors#add` instead.

    @ClayShentrup ClayShentrup committed Mar 4, 2022
  • Revert previous change. It was not quite right.

    @ClayShentrup ClayShentrup committed Mar 4, 2022
  • The example given had an unreachable condition, where the recoverable is approved by not persisted. This was discovered via SimpleCov.

    @ClayShentrup ClayShentrup committed Mar 4, 2022
  • Fix syntax highlighting throughout; minor wording changes

    @sigi sigi committed Aug 24, 2021
  • One liner

    @zenati zenati committed Aug 11, 2018
  • Tiny typo - "visiti[m]g" instead of "visiti[n]g"

    @antonleviathan antonleviathan committed Apr 19, 2018
  • Updated How To: Require admin to activate account before sign_in (markdown)

    @ck80 ck80 committed Mar 11, 2018
  • Updated How To: Require admin to activate account before sign_in (markdown)

    @ck80 ck80 committed Mar 11, 2018
  • I am a ruby novice but had lots of trouble with this guide. After many hours of troubleshooting I managed to figure it out. I have made some edits to make it clearer for others to follow.

    @ck80 ck80 committed Mar 11, 2018
  • @users should return a collection instead of a single object

    @ryleto ryleto committed Aug 17, 2016
  • Updated How To: Require admin to activate account before sign_in (markdown)

    @LuisMenjivar LuisMenjivar committed May 2, 2016
  • Updated How To: Require admin to activate account before sign_in (markdown)

    @serodriguez68 serodriguez68 committed Aug 16, 2015
  • Updated How To: Require admin to activate account before sign_in (markdown)

    @serodriguez68 serodriguez68 committed Aug 16, 2015
  • Updated How To: Require admin to activate account before sign_in (markdown)

    @serodriguez68 serodriguez68 committed Aug 16, 2015
  • Updated for rails 4, no longer recommending attr_accessible

    @lourd lourd committed Dec 4, 2013
  • Updated How To: Require admin to activate account before sign_in (markdown)

    @dpaluy dpaluy committed Sep 16, 2012
  • Added guide for Email Notifications

    @dpaluy dpaluy committed Sep 16, 2012
  • Changing migration class name to match the migration generator command

    @nvh nvh committed Jun 7, 2012
  • Add translation for the message that appears after registration

    sekrett committed May 28, 2012
  • Updated How To: Require admin to activate account before sign_in (markdown)

    @nono nono committed Aug 22, 2011
  • Updated How To: Require admin to activate account before sign_in (markdown)

    @nono nono committed Aug 22, 2011
  • Updated How To: Require admin to activate account before sign_in (markdown)

    @nono nono committed Aug 22, 2011
  • Updated How To: Require admin to activate account before sign_in (markdown)

    @nono nono committed Aug 22, 2011
  • Not trying to do table scans or have nulls where they're not needed

    coolstorybro committed Aug 22, 2011
  • Updated How To: Require admin to activate account before sign_in (markdown)

    @map7 map7 committed Apr 27, 2011
  • Created How To: Require admin to activate account before sign_in (markdown)

    drosboro committed Apr 25, 2011